File tree Expand file tree Collapse file tree 3 files changed +7
-1
lines changed
Expand file tree Collapse file tree 3 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -32,6 +32,9 @@ is_object_valid 'user' 'USER' "$user"
3232
3333# Defining config
3434conf=$USER_DATA /stats.log
35+ if [ ! -e " $conf " ]; then
36+ touch $conf
37+ fi
3538
3639# Defining fileds to select
3740fields=" \$ DATE \$ TIME \$ PACKAGE \$ IP_OWNED \$ DISK_QUOTA \$ U_DISK \$ U_DISK_DIRS"
Original file line number Diff line number Diff line change @@ -29,6 +29,9 @@ check_args '0' "$#" '[FORMAT]'
2929
3030# Defining config
3131conf=$VESTA /data/users/admin/overall_stats.log
32+ if [ ! -e " $conf " ]; then
33+ touch $conf
34+ fi
3235
3336# Defining fileds to select
3437fields=" \$ DATE \$ TIME \$ PACKAGE \$ IP_OWNED \$ DISK_QUOTA \$ U_DISK \$ U_DISK_DIRS"
Original file line number Diff line number Diff line change @@ -548,7 +548,7 @@ $VESTA/bin/v-add-cron-job 'admin' '*/30' '*' '*' '*' '*' "$command"
548548command=' sudo /usr/local/vesta/bin/v-backup-users'
549549$VESTA /bin/v-add-cron-job ' admin' ' 10' ' 05' ' *' ' *' ' *' " $command "
550550command=' 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 "
552552command=' sudo /usr/local/vesta/bin/v-update-sys-rrd'
553553$VESTA /bin/v-add-cron-job ' admin' ' */5' ' *' ' *' ' *' ' *' " $command "
554554
You can’t perform that action at this time.
0 commit comments