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:
parent
c9143621ba
commit
19b90524ab
1 changed files with 3 additions and 0 deletions
|
@ -109,6 +109,9 @@ if expr "$1" : "apache" 1>/dev/null || [ "$1" = "php-fpm" ] || [ "${NEXTCLOUD_UP
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
rsync $rsync_options --include '/version.php' --exclude '/*' /usr/src/nextcloud/ /var/www/html/
|
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"
|
echo "Initializing finished"
|
||||||
|
|
||||||
#install
|
#install
|
||||||
|
|
Loading…
Add table
Reference in a new issue