diff options
author | nachoparker <nacho@ownyourbits.com> | 2019-01-17 04:05:21 +0300 |
---|---|---|
committer | nachoparker <nacho@ownyourbits.com> | 2019-01-17 04:40:45 +0300 |
commit | bab2d22b3a4fcc1689a4ab003df7bac253d44317 (patch) | |
tree | a04a43d8f6bf9ff1a3776c3b3db3a80af0f711b2 /update.sh | |
parent | 84ac075831ce3379618556d274f7bc31acd04695 (diff) |
docker: change location of the nextcloud folder
Diffstat (limited to 'update.sh')
-rwxr-xr-x | update.sh | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -190,12 +190,18 @@ cp -r ncp-app /var/www/ # docker images only [[ -f /.docker-image ]] && { + + # fix dirs [[ -d /data/app ]] && { + ncc config:system:set datadirectory --value="/data/nextcloud/data" [[ -d /data/nextcloud ]] && mv /data/nextcloud /data/nextcloud-old mv /data/app /data/nextcloud && \ rm -f /var/www/nextcloud && \ ln -s /data/nextcloud /var/www/nextcloud } + + # re-enable automount + is_active_app nc-automount && run_app nc-automount : } @@ -245,9 +251,6 @@ cp -r ncp-app /var/www/ </Directory> EOF - # re-enable automount - is_active_app nc-automount && run_app nc-automount - # update nc-backup install_app nc-backup install_app nc-restore |