reset bw counter on the start of the month

This commit is contained in:
Serghey Rodin 2013-02-17 13:00:13 +02:00
commit 6d8ffc1ab9
3 changed files with 11 additions and 1 deletions

View file

@ -65,7 +65,7 @@ TOTAL_U_CRON_JOBS=0
TOTAL_U_BACKUPS=0
# Updating user stats
for user in $user_list; do
for user in $user_list; do
USER_DATA=$VESTA/data/users/$user
source $USER_DATA/user.conf
next_month=$(date +'%m/01/%y' -d '+ 1 month')