Correcting $ALLOW_BACKUP_ANYTIME

This commit is contained in:
dpeca 2019-04-27 16:04:49 +02:00 committed by GitHub
commit caf3e97d5c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -966,7 +966,7 @@ wait_for_backup_if_it_is_not_time_for_backup() {
done
# block backup if current hour is after 6 AM
if [ -z "ALLOW_BACKUP_ANYTIME" ]; then
if [ -z "$ALLOW_BACKUP_ANYTIME" ]; then
WAIT_LOOP_ENTERED=0
hour=$(date +"%H");
while [ "$hour" -gt "6" ] || [ "$hour" -lt "1" ]; do