File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -97,18 +97,18 @@ if expr "$1" : "apache" 1>/dev/null || [ "$1" = "php-fpm" ] || [ "${NEXTCLOUD_UP
9797 run_as ' php /var/www/html/occ app:list' | sed -n " /Enabled:/,/Disabled:/p" > /tmp/list_before
9898 fi
9999 if [ " $( id -u) " = 0 ]; then
100- rsync_options=" -rlDog --chown www-data:root"
100+ rsync_options=( -rlDog --chown www-data:root)
101101 else
102- rsync_options=" -rlD"
102+ rsync_options=( -rlD)
103103 fi
104- rsync " $rsync_options " --delete --exclude-from=/upgrade.exclude /usr/src/nextcloud/ /var/www/html/
104+ rsync " ${ rsync_options[@]} " --delete --exclude-from=/upgrade.exclude /usr/src/nextcloud/ /var/www/html/
105105
106106 for dir in config data custom_apps themes; do
107107 if [ ! -d " /var/www/html/$dir " ] || directory_empty " /var/www/html/$dir " ; then
108- rsync " $rsync_options " --include " /$dir /" --exclude ' /*' /usr/src/nextcloud/ /var/www/html/
108+ rsync " ${ rsync_options[@]} " --include " /$dir /" --exclude ' /*' /usr/src/nextcloud/ /var/www/html/
109109 fi
110110 done
111- rsync " $rsync_options " --include ' /version.php' --exclude ' /*' /usr/src/nextcloud/ /var/www/html/
111+ rsync " ${ rsync_options[@]} " --include ' /version.php' --exclude ' /*' /usr/src/nextcloud/ /var/www/html/
112112 echo " Initializing finished"
113113
114114 # install
You can’t perform that action at this time.
0 commit comments