@@ -1792,6 +1792,11 @@ $HESTIA/bin/v-add-web-domain admin $servername
17921792check_result $? " can't create $servername domain"
17931793
17941794# Adding cron jobs
1795+ export SCHEDULED_RESTART=" yes"
1796+ command=" sudo $HESTIA /bin/v-update-sys-queue restart"
1797+ $HESTIA /bin/v-add-cron-job ' admin' ' */2' ' *' ' *' ' *' ' *' " $command "
1798+ systemctl restart cron
1799+
17951800command=" sudo $HESTIA /bin/v-update-sys-queue disk"
17961801$HESTIA /bin/v-add-cron-job ' admin' ' 15' ' 02' ' *' ' *' ' *' " $command "
17971802command=" sudo $HESTIA /bin/v-update-sys-queue traffic"
@@ -1800,8 +1805,6 @@ command="sudo $HESTIA/bin/v-update-sys-queue webstats"
18001805$HESTIA /bin/v-add-cron-job ' admin' ' 30' ' 03' ' *' ' *' ' *' " $command "
18011806command=" sudo $HESTIA /bin/v-update-sys-queue backup"
18021807$HESTIA /bin/v-add-cron-job ' admin' ' */5' ' *' ' *' ' *' ' *' " $command "
1803- command=" sudo $HESTIA /bin/v-update-sys-queue restart"
1804- $HESTIA /bin/v-add-cron-job ' admin' ' */2' ' *' ' *' ' *' ' *' " $command "
18051808command=" sudo $HESTIA /bin/v-backup-users"
18061809$HESTIA /bin/v-add-cron-job ' admin' ' 10' ' 05' ' *' ' *' ' *' " $command "
18071810command=" sudo $HESTIA /bin/v-update-user-stats"
@@ -1811,7 +1814,6 @@ $HESTIA/bin/v-add-cron-job 'admin' '*/5' '*' '*' '*' '*' "$command"
18111814
18121815# Enable automatic updates
18131816$HESTIA /bin/v-add-cron-hestia-autoupdate
1814- systemctl restart cron
18151817
18161818# Building initital rrd images
18171819$HESTIA /bin/v-update-sys-rrd
0 commit comments