From cd3e1f95856963a5882bc4056f3b3e7fc2dfb72e Mon Sep 17 00:00:00 2001 From: dpeca Date: Thu, 28 Mar 2019 14:28:48 +0100 Subject: [PATCH] Requested backups should also wait for night --- func/main.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/func/main.sh b/func/main.sh index 464b9727..3d731e11 100644 --- a/func/main.sh +++ b/func/main.sh @@ -967,8 +967,8 @@ wait_for_backup_if_it_is_not_time_for_backup() { # block backup if current hour is after 6 AM WAIT_LOOP_ENTERED=0 - if pgrep -x "v-backup-users" > /dev/null - then + # if pgrep -x "v-backup-users" > /dev/null + # then hour=$(date +"%H"); while [ "$hour" -gt "6" ] || [ "$hour" -lt "1" ]; do # if [ "$WAIT_LOOP_ENTERED" -eq 0 ]; then @@ -985,5 +985,5 @@ wait_for_backup_if_it_is_not_time_for_backup() { sleep 300 hour=$(date +"%H"); done - fi + # fi }