mirror of
https://github.com/serghey-rodin/vesta.git
synced 2025-08-21 05:44:07 -07:00
empty stats file (related to #59)
This commit is contained in:
parent
9d67cd0f9d
commit
a63c3e2bb5
3 changed files with 7 additions and 1 deletions
|
@ -32,6 +32,9 @@ is_object_valid 'user' 'USER' "$user"
|
|||
|
||||
# Defining config
|
||||
conf=$USER_DATA/stats.log
|
||||
if [ ! -e "$conf" ]; then
|
||||
touch $conf
|
||||
fi
|
||||
|
||||
# Defining fileds to select
|
||||
fields="\$DATE \$TIME \$PACKAGE \$IP_OWNED \$DISK_QUOTA \$U_DISK \$U_DISK_DIRS"
|
||||
|
|
|
@ -29,6 +29,9 @@ check_args '0' "$#" '[FORMAT]'
|
|||
|
||||
# Defining config
|
||||
conf=$VESTA/data/users/admin/overall_stats.log
|
||||
if [ ! -e "$conf" ]; then
|
||||
touch $conf
|
||||
fi
|
||||
|
||||
# Defining fileds to select
|
||||
fields="\$DATE \$TIME \$PACKAGE \$IP_OWNED \$DISK_QUOTA \$U_DISK \$U_DISK_DIRS"
|
||||
|
|
|
@ -548,7 +548,7 @@ $VESTA/bin/v-add-cron-job 'admin' '*/30' '*' '*' '*' '*' "$command"
|
|||
command='sudo /usr/local/vesta/bin/v-backup-users'
|
||||
$VESTA/bin/v-add-cron-job 'admin' '10' '05' '*' '*' '*' "$command"
|
||||
command='sudo /usr/local/vesta/bin/v-update-user-stats'
|
||||
$VESTA/bin/v-add-cron-job 'admin' '20' '00' '01' '*' '*' "$command"
|
||||
$VESTA/bin/v-add-cron-job 'admin' '20' '00' '*' '*' '*' "$command"
|
||||
command='sudo /usr/local/vesta/bin/v-update-sys-rrd'
|
||||
$VESTA/bin/v-add-cron-job 'admin' '*/5' '*' '*' '*' '*' "$command"
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue