mirror of
https://github.com/nextcloud/all-in-one.git
synced 2025-12-20 14:36:52 +00:00
make sure to only trigger the daily-backup script if daily_backups are really enabled
Signed-off-by: Simon L <szaimen@e.mail.de>
This commit is contained in:
parent
e323f9770b
commit
ebe30e69f9
1 changed files with 5 additions and 5 deletions
|
|
@ -13,16 +13,16 @@ while true; do
|
||||||
export START_CONTAINERS=1
|
export START_CONTAINERS=1
|
||||||
fi
|
fi
|
||||||
set +x
|
set +x
|
||||||
else
|
|
||||||
export BACKUP_TIME="04:00"
|
|
||||||
export DAILY_BACKUP=0
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -f "/mnt/docker-aio-config/data/daily_backup_running" ]; then
|
if [ -f "/mnt/docker-aio-config/data/daily_backup_running" ]; then
|
||||||
export LOCK_FILE_PRESENT=1
|
export LOCK_FILE_PRESENT=1
|
||||||
else
|
else
|
||||||
export LOCK_FILE_PRESENT=0
|
export LOCK_FILE_PRESENT=0
|
||||||
fi
|
fi
|
||||||
|
else
|
||||||
|
export BACKUP_TIME="04:00"
|
||||||
|
export DAILY_BACKUP=0
|
||||||
|
export LOCK_FILE_PRESENT=0
|
||||||
|
fi
|
||||||
|
|
||||||
# Allow to continue directly if e.g. the mastercontainer was updated. Otherwise wait for the next execution
|
# Allow to continue directly if e.g. the mastercontainer was updated. Otherwise wait for the next execution
|
||||||
if [ "$LOCK_FILE_PRESENT" = 0 ]; then
|
if [ "$LOCK_FILE_PRESENT" = 0 ]; then
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue