Skip to content

Commit 5b74c3a

Browse files
committed
#58 docker: fix entrypoint script for Nextcloud 34
Signed-off-by: Patrizio Bekerle <patrizio@bekerle.com>
1 parent 3fdea97 commit 5b74c3a

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

docker/entrypoint.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)