mirror of
https://github.com/nextcloud/docker.git
synced 2025-04-25 21:00:53 +02:00
strong permissions
This commit is contained in:
parent
201d934bb6
commit
d253cc1171
16 changed files with 166 additions and 22 deletions
|
@ -28,9 +28,14 @@ if version_greater "$image_version" "$installed_version"; then
|
|||
cp -arT /usr/src/nextcloud/config /var/www/html/config
|
||||
fi
|
||||
|
||||
mkdir -p /var/www/html/custom_apps
|
||||
if [ ! -d /var/www/html/data ]; then
|
||||
cp -arT /usr/src/nextcloud/data /var/www/html/data
|
||||
fi
|
||||
|
||||
chown -R www-data /var/www/html
|
||||
if [ ! -d /var/www/html/custom_apps ]; then
|
||||
cp -arT /usr/src/nextcloud/custom_apps /var/www/html/custom_apps
|
||||
cp -a /usr/src/nextcloud/config/apps.config.php /var/www/html/config/apps.config.php
|
||||
fi
|
||||
|
||||
if [ "$installed_version" != "0.0.0~unknown" ]; then
|
||||
su - www-data -s /bin/bash -c 'php /var/www/html/occ upgrade --no-app-disable'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue