0
0
Fork 0
mirror of https://github.com/nextcloud/docker.git synced 2025-04-21 11:06:09 +02:00

recursively update permissions on upgrade

This commit is contained in:
Shane Davidson 2021-08-25 10:12:25 +10:00 committed by GitHub
parent c9143621ba
commit 19b90524ab
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -109,6 +109,9 @@ if expr "$1" : "apache" 1>/dev/null || [ "$1" = "php-fpm" ] || [ "${NEXTCLOUD_UP
fi
done
rsync $rsync_options --include '/version.php' --exclude '/*' /usr/src/nextcloud/ /var/www/html/
if [ "$(id -u)" = 0 ]; then
chown -R www-data:root /var/www/html
fi
echo "Initializing finished"
#install