From ebe30e69f9b556fddc3c4800d1261f7b0e8123e9 Mon Sep 17 00:00:00 2001 From: Simon L Date: Sun, 20 Nov 2022 01:36:55 +0100 Subject: [PATCH] make sure to only trigger the daily-backup script if daily_backups are really enabled Signed-off-by: Simon L --- Containers/mastercontainer/cron.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Containers/mastercontainer/cron.sh b/Containers/mastercontainer/cron.sh index f8d09c4c..563b1ef6 100644 --- a/Containers/mastercontainer/cron.sh +++ b/Containers/mastercontainer/cron.sh @@ -13,14 +13,14 @@ while true; do export START_CONTAINERS=1 fi set +x + if [ -f "/mnt/docker-aio-config/data/daily_backup_running" ]; then + export LOCK_FILE_PRESENT=1 + else + export LOCK_FILE_PRESENT=0 + fi else export BACKUP_TIME="04:00" export DAILY_BACKUP=0 - fi - - if [ -f "/mnt/docker-aio-config/data/daily_backup_running" ]; then - export LOCK_FILE_PRESENT=1 - else export LOCK_FILE_PRESENT=0 fi