mirror of
https://github.com/myvesta/vesta
synced 2025-08-21 05:44:08 -07:00
Adding $ALLOW_BACKUP_ANYTIME
This commit is contained in:
parent
9400592892
commit
233a3a3777
1 changed files with 3 additions and 4 deletions
|
@ -966,9 +966,8 @@ wait_for_backup_if_it_is_not_time_for_backup() {
|
|||
done
|
||||
|
||||
# block backup if current hour is after 6 AM
|
||||
WAIT_LOOP_ENTERED=0
|
||||
# if pgrep -x "v-backup-users" > /dev/null
|
||||
# then
|
||||
if [ -z "ALLOW_BACKUP_ANYTIME" ]; then
|
||||
WAIT_LOOP_ENTERED=0
|
||||
hour=$(date +"%H");
|
||||
while [ "$hour" -gt "6" ] || [ "$hour" -lt "1" ]; do
|
||||
# if [ "$WAIT_LOOP_ENTERED" -eq 0 ]; then
|
||||
|
@ -985,5 +984,5 @@ wait_for_backup_if_it_is_not_time_for_backup() {
|
|||
sleep 300
|
||||
hour=$(date +"%H");
|
||||
done
|
||||
# fi
|
||||
fi
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue