From 5918601e28e9ede1e4a76730ba07a882c69f15ab Mon Sep 17 00:00:00 2001 From: Kay0u Date: Mon, 8 Mar 2021 18:47:01 +0100 Subject: [PATCH] fix allowsymlinks --- README.md | 5 ----- README_fr.md | 5 ----- conf/config.json | 3 ++- scripts/install | 3 --- scripts/upgrade | 3 --- 5 files changed, 2 insertions(+), 17 deletions(-) diff --git a/README.md b/README.md index 409ca59..7761916 100644 --- a/README.md +++ b/README.md @@ -65,11 +65,6 @@ To integrate the logout button to the SSO, we have to patch Nextcloud sources. I Also, note we made the choice to disable third-parties applications at the upgrade. It allows to prevent an unstable - and sometimes broken - Nextcloud installation. You will just have to manually activate them after the upgrade. -Finally, the following error message in Nextcloud logs can be safely ignored: -``` -Following symlinks is not allowed ('/home/yunohost.multimedia/user/Share' -> '/home/yunohost.multimedia/share/' not inside '/home/yunohost.multimedia/user/') -``` - ## Additionnal informations #### `occ` command usage diff --git a/README_fr.md b/README_fr.md index e91d9c1..1e3f42f 100644 --- a/README_fr.md +++ b/README_fr.md @@ -67,11 +67,6 @@ En attendant un intégration de leur part, la vérification d'intégrité du cod Notez également que nous avons choisi de désactiver les applications tierces-parties lors des mises à jour. Ça permet d'éviter une installation de Nextcloud instable - ou qui pourrait planter. Vous devrez juste les réactiver manuellement après chaque mise à jour. -Et enfin, le message d'erreur suivant dans les logs de Nextcloud peut être ignoré sans problème : -``` -Following symlinks is not allowed ('/home/yunohost.multimedia/user/Share' -> '/home/yunohost.multimedia/share/' not inside '/home/yunohost.multimedia/user/') -``` - ## Liens * Signaler un bug : https://github.com/YunoHost-Apps/nextcloud_ynh/issues diff --git a/conf/config.json b/conf/config.json index 7d24587..dd91882 100644 --- a/conf/config.json +++ b/conf/config.json @@ -11,7 +11,8 @@ "timeout": "0.0", "password": "" }, - "hashing_default_password": true + "hashing_default_password": true, + "localstorage.allowsymlinks": true }, "apps": { "user_ldap": { diff --git a/scripts/install b/scripts/install index 1e1621d..143d1b9 100755 --- a/scripts/install +++ b/scripts/install @@ -84,9 +84,6 @@ cp -a ../sources/patches_last_version/* ../sources/patches # Download, check integrity, uncompress and patch the source from app.src ynh_setup_source --dest_dir="$final_path" -# Allow Symlinks for multimedia folder -ynh_replace_string --match_string="protected \$allowSymlinks = false;" --replace_string="protected \$allowSymlinks = true;" --target_file="$final_path/lib/private/Files/Storage/Local.php" - #================================================= # CREATE DEDICATED USER #================================================= diff --git a/scripts/upgrade b/scripts/upgrade index 5805432..3c2c125 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -271,9 +271,6 @@ then # Install the next nextcloud version in $tmpdir ynh_setup_source --dest_dir="$tmpdir" - # Allow Symlinks for multimedia folder - ynh_replace_string --match_string="protected \$allowSymlinks = false;" --replace_string="protected \$allowSymlinks = true;" --target_file="$tmpdir/lib/private/Files/Storage/Local.php" - # Enable maintenance mode exec_occ maintenance:mode --on