mirror of
https://github.com/nextcloud/vm.git
synced 2025-10-26 11:27:32 +00:00
use datadir from Nextclouds config.php
This commit is contained in:
parent
bf55d75f87
commit
5cbe9c170a
@ -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"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user