Browse Source

allow Symlinks

pull/358/head
Kay0u 5 years ago
parent
commit
c835aea178
No known key found for this signature in database GPG Key ID: AAFEEB16CFA2AE2D
  1. 3
      scripts/install
  2. 3
      scripts/upgrade

3
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
#=================================================

3
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

Loading…
Cancel
Save