mirror of
https://github.com/myvesta/vesta
synced 2025-08-20 21:34:12 -07:00
Block backup if current hour is after 6 AM
This commit is contained in:
parent
8d4a2c1707
commit
fc187b3863
1 changed files with 2 additions and 2 deletions
|
@ -39,11 +39,11 @@ is_backup_enabled
|
||||||
# Action #
|
# Action #
|
||||||
#----------------------------------------------------------#
|
#----------------------------------------------------------#
|
||||||
|
|
||||||
# block backup if current hour is after 8 AM
|
# block backup if current hour is after 6 AM
|
||||||
if pgrep -x "v-backup-users" > /dev/null
|
if pgrep -x "v-backup-users" > /dev/null
|
||||||
then
|
then
|
||||||
hour=$(date +"%H");
|
hour=$(date +"%H");
|
||||||
while [ "$hour" -gt "8" ]; do
|
while [ "$hour" -gt "6" ]; do
|
||||||
sleep 300
|
sleep 300
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue