Skip to content

Commit

Permalink
docker: fix DATADIR variable in nc-backup (#746)
Browse files Browse the repository at this point in the history
  • Loading branch information
paschaef authored and nachoparker committed Dec 21, 2018
1 parent 9766dc2 commit e87c972
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion etc/ncp-config.d/nc-backup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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..."
Expand Down

0 comments on commit e87c972

Please sign in to comment.