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:
authorpaschaef <45995338+paschaef@users.noreply.github.com>2018-12-21 04:43:50 +0300
committernachoparker <nacho@ownyourbits.com>2018-12-21 04:43:50 +0300
commite87c9722251dc089202ce3f9ae2e48b727a10f89 (patch)
tree262b29e05b2200fc8287a884647713a1e9180a33
parent9766dc2cc38a4e0c9a8af899f0968275d3abc8d8 (diff)
docker: fix DATADIR variable in nc-backup (#746)v0.67.9
-rw-r--r--etc/ncp-config.d/nc-backup.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/ncp-config.d/nc-backup.sh b/etc/ncp-config.d/nc-backup.sh
index a67bf87e..fbe70677 100644
--- a/etc/ncp-config.d/nc-backup.sh
+++ b/etc/ncp-config.d/nc-backup.sh
@@ -61,7 +61,7 @@ FREE=$( df "$DESTDIR" | tail -1 | awk '{ print $4 }' )
# database
$OCC maintenance:mode --on
-[[ -f /.docker-image ]] && mv /data/app /data/nextcloud
+[[ -f /.docker-image ]] && mv /data/app /data/nextcloud && DATADIR=/data/nextcloud/data
[[ -f /.docker-image ]] && BASEDIR=/data || BASEDIR=/var/www
cd "$BASEDIR" || exit 1
echo "backup database..."