Skip to content

Commit a63c3e2

Browse files
committed
empty stats file (related to hestiacp#59)
1 parent 9d67cd0 commit a63c3e2

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

bin/v-list-user-stats

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@ is_object_valid 'user' 'USER' "$user"
3232

3333
# Defining config
3434
conf=$USER_DATA/stats.log
35+
if [ ! -e "$conf" ]; then
36+
touch $conf
37+
fi
3538

3639
# Defining fileds to select
3740
fields="\$DATE \$TIME \$PACKAGE \$IP_OWNED \$DISK_QUOTA \$U_DISK \$U_DISK_DIRS"

bin/v-list-users-stats

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ check_args '0' "$#" '[FORMAT]'
2929

3030
# Defining config
3131
conf=$VESTA/data/users/admin/overall_stats.log
32+
if [ ! -e "$conf" ]; then
33+
touch $conf
34+
fi
3235

3336
# Defining fileds to select
3437
fields="\$DATE \$TIME \$PACKAGE \$IP_OWNED \$DISK_QUOTA \$U_DISK \$U_DISK_DIRS"

install/vst-install.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -548,7 +548,7 @@ $VESTA/bin/v-add-cron-job 'admin' '*/30' '*' '*' '*' '*' "$command"
548548
command='sudo /usr/local/vesta/bin/v-backup-users'
549549
$VESTA/bin/v-add-cron-job 'admin' '10' '05' '*' '*' '*' "$command"
550550
command='sudo /usr/local/vesta/bin/v-update-user-stats'
551-
$VESTA/bin/v-add-cron-job 'admin' '20' '00' '01' '*' '*' "$command"
551+
$VESTA/bin/v-add-cron-job 'admin' '20' '00' '*' '*' '*' "$command"
552552
command='sudo /usr/local/vesta/bin/v-update-sys-rrd'
553553
$VESTA/bin/v-add-cron-job 'admin' '*/5' '*' '*' '*' '*' "$command"
554554

0 commit comments

Comments
 (0)