From 141887c635f5de579b92ef611320d9c3e6aa0a02 Mon Sep 17 00:00:00 2001 From: szaimen Date: Sun, 29 May 2022 16:30:45 +0200 Subject: [PATCH] fix the notification spam Signed-off-by: szaimen --- Containers/mastercontainer/cron.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Containers/mastercontainer/cron.sh b/Containers/mastercontainer/cron.sh index ced0c744..8d0df12f 100644 --- a/Containers/mastercontainer/cron.sh +++ b/Containers/mastercontainer/cron.sh @@ -20,7 +20,7 @@ while true; do # Allow to continue directly if e.g. the mastercontainer was updated. Otherwise wait for the next execution if [ "$LOCK_FILE_PRESENT" = 0 ]; then while [ "$(date +%H:%M)" != "$BACKUP_TIME" ]; do - sleep 1 + sleep 30 done fi @@ -93,4 +93,7 @@ while true; do # Remove dangling images sudo -u www-data docker image prune -f + + # Wait 60s so that the whole loop will not be executed again + sleep 60 done