mirror of
https://github.com/myvesta/vesta
synced 2025-08-21 05:44:08 -07:00
reset bw counter on the start of the month
This commit is contained in:
parent
636213f0b6
commit
6d8ffc1ab9
3 changed files with 11 additions and 1 deletions
|
@ -61,6 +61,11 @@ echo > $log_file
|
|||
# Vesta #
|
||||
#----------------------------------------------------------#
|
||||
|
||||
# Reset counter on the start of the month
|
||||
if [ "$(date +%d)" = '01' ]; then
|
||||
update_object_value 'web' 'DOMAIN' "$domain" '$U_BANDWIDTH' '0'
|
||||
fi
|
||||
|
||||
# Parsing old value
|
||||
get_domain_values 'web'
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue