mirror of
https://github.com/nextcloud/docker.git
synced 2025-06-15 15:54:47 +02:00
Use exclude file for the updater
Signed-off-by: Tilo Spannagel <development@tilosp.de>
This commit is contained in:
parent
de7204ccda
commit
a46493fbc4
5 changed files with 10 additions and 3 deletions
|
@ -44,7 +44,7 @@ if expr "$1" : "apache" 1>/dev/null || [ "$1" = "php-fpm" ]; then
|
|||
else
|
||||
rsync_options="-rlD"
|
||||
fi
|
||||
rsync $rsync_options --delete --exclude /config/ --exclude /data/ --exclude /custom_apps/ --exclude /themes/ /usr/src/nextcloud/ /var/www/html/
|
||||
rsync $rsync_options --delete --exclude-from=/upgrade.exclude /usr/src/nextcloud/ /var/www/html/
|
||||
|
||||
for dir in config data custom_apps themes; do
|
||||
if [ ! -d "/var/www/html/$dir" ] || directory_empty "/var/www/html/$dir"; then
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue