mirror of
https://github.com/nextcloud/all-in-one.git
synced 2025-12-21 06:56:57 +00:00
Merge pull request #1428 from nextcloud/enh/noid/disable-race-condition
make sure to only trigger the daily-backup script if daily_backups ar…
This commit is contained in:
commit
b8d5903c3b
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