diff options
author | Tilo Spannagel <development@tilosp.de> | 2017-04-19 19:29:51 +0200 |
---|---|---|
committer | Tilo Spannagel <development@tilosp.de> | 2017-04-19 19:29:51 +0200 |
commit | d253cc11713122ca49e8bb1857ac9e6772440d20 (patch) | |
tree | aab423ecf2e8f1570fba650c52610cfda7834db8 /docker-entrypoint.sh | |
parent | 201d934bb613d202ed3a6e50e90ecf11c0cd5afc (diff) |
strong permissions
Diffstat (limited to 'docker-entrypoint.sh')
-rwxr-xr-x | docker-entrypoint.sh | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/docker-entrypoint.sh b/docker-entrypoint.sh index 7c171148..b2bf65e7 100755 --- a/docker-entrypoint.sh +++ b/docker-entrypoint.sh @@ -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' |