From c835aea17826b0debdbb586cb159a2ddad0b9a95 Mon Sep 17 00:00:00 2001 From: Kay0u Date: Wed, 16 Dec 2020 13:59:58 +0100 Subject: [PATCH] allow Symlinks --- scripts/install | 3 +++ scripts/upgrade | 3 +++ 2 files changed, 6 insertions(+) diff --git a/scripts/install b/scripts/install index 70e89f4..d9a539a 100755 --- a/scripts/install +++ b/scripts/install @@ -84,6 +84,9 @@ 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 057b9f1..84cbebf 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -270,6 +270,9 @@ 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