Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/nextcloudpi.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornachoparker <nacho@ownyourbits.com>2019-01-17 04:05:21 +0300
committernachoparker <nacho@ownyourbits.com>2019-01-17 04:40:45 +0300
commitbab2d22b3a4fcc1689a4ab003df7bac253d44317 (patch)
treea04a43d8f6bf9ff1a3776c3b3db3a80af0f711b2 /update.sh
parent84ac075831ce3379618556d274f7bc31acd04695 (diff)
docker: change location of the nextcloud folder
Diffstat (limited to 'update.sh')
-rwxr-xr-xupdate.sh9
1 files changed, 6 insertions, 3 deletions
diff --git a/update.sh b/update.sh
index e817d803..3722867e 100755
--- a/update.sh
+++ b/update.sh
@@ -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