OR instead AND

This commit is contained in:
myvesta 2019-01-11 00:24:50 +01:00 committed by GitHub
parent f8461813d7
commit a46490af77
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() {
if pgrep -x "v-backup-users" > /dev/null
then
hour=$(date +"%H");
while [ "$hour" -gt "6" ] && [ "$hour" -lt "1" ]; do
while [ "$hour" -gt "6" ] || [ "$hour" -lt "1" ]; do
# if [ "$WAIT_LOOP_ENTERED" -eq 0 ]; then
# do something when enter sleeping state
# $BIN/v-restart-web-backend