use datadir from Nextclouds config.php

This commit is contained in:
Daniel Hansson 2018-12-02 20:51:06 +01:00 committed by GitHub
parent bf55d75f87
commit 5cbe9c170a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -16,10 +16,7 @@ debug_mode
# https://www.techandme.se/changes-to-docker-ce-in-the-nextcloud-vm/
# Credits to: https://gist.github.com/hydra1983/22b2bed38b4f5f56caa87c830c96378d
if [ ! -d $NCDATA ]
then
DOCKERBACKUP=/var/DOCKERBACKUP
fi
DOCKERBACKUP=$(grep "datadir" $NCPATH/config/config.php | awk '{print $3}' | sed "s/[',]//g")/DOCKERBACKUP
readonly DB_FILE="$DOCKERBACKUP/images.db"
readonly IMG_DIR="$DOCKERBACKUP/images"