@@ -1785,6 +1785,11 @@ $HESTIA/bin/v-add-web-domain admin $servername
17851785check_result $? " can't create $servername domain"
17861786
17871787# Adding cron jobs
1788+ export SCHEDULED_RESTART=" yes"
1789+ command=" sudo $HESTIA /bin/v-update-sys-queue restart"
1790+ $HESTIA /bin/v-add-cron-job ' admin' ' */2' ' *' ' *' ' *' ' *' " $command "
1791+ systemctl restart cron
1792+
17881793command=" sudo $HESTIA /bin/v-update-sys-queue disk"
17891794$HESTIA /bin/v-add-cron-job ' admin' ' 15' ' 02' ' *' ' *' ' *' " $command "
17901795command=" sudo $HESTIA /bin/v-update-sys-queue traffic"
@@ -1793,8 +1798,6 @@ command="sudo $HESTIA/bin/v-update-sys-queue webstats"
17931798$HESTIA /bin/v-add-cron-job ' admin' ' 30' ' 03' ' *' ' *' ' *' " $command "
17941799command=" sudo $HESTIA /bin/v-update-sys-queue backup"
17951800$HESTIA /bin/v-add-cron-job ' admin' ' */5' ' *' ' *' ' *' ' *' " $command "
1796- command=" sudo $HESTIA /bin/v-update-sys-queue restart"
1797- $HESTIA /bin/v-add-cron-job ' admin' ' */2' ' *' ' *' ' *' ' *' " $command "
17981801command=" sudo $HESTIA /bin/v-backup-users"
17991802$HESTIA /bin/v-add-cron-job ' admin' ' 10' ' 05' ' *' ' *' ' *' " $command "
18001803command=" sudo $HESTIA /bin/v-update-user-stats"
@@ -1804,7 +1807,6 @@ $HESTIA/bin/v-add-cron-job 'admin' '*/5' '*' '*' '*' '*' "$command"
18041807
18051808# Enable automatic updates
18061809$HESTIA /bin/v-add-cron-hestia-autoupdate
1807- systemctl restart cron
18081810
18091811# Building initital rrd images
18101812$HESTIA /bin/v-update-sys-rrd
0 commit comments