File tree Expand file tree Collapse file tree 4 files changed +12
-2
lines changed
Expand file tree Collapse file tree 4 files changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ SENDMAIL="$HESTIA/web/inc/mail-wrapper.php"
1818HESTIA_GIT_REPO=" https://raw.githubusercontent.com/hestiacp/hestiacp"
1919HESTIA_THEMES=" $HESTIA /themes"
2020HESTIA_THEMES_CUSTOM=" $HESTIA /data/templates/themes"
21+ SCRIPT=" $( basename $0 ) "
2122
2223# Return codes
2324OK=0
Original file line number Diff line number Diff line change @@ -1791,6 +1791,8 @@ command="sudo $HESTIA/bin/v-update-sys-queue webstats"
17911791$HESTIA /bin/v-add-cron-job ' admin' ' 30' ' 03' ' *' ' *' ' *' " $command "
17921792command=" sudo $HESTIA /bin/v-update-sys-queue backup"
17931793$HESTIA /bin/v-add-cron-job ' admin' ' */5' ' *' ' *' ' *' ' *' " $command "
1794+ command=" sudo $HESTIA /bin/v-update-sys-queue restart"
1795+ $HESTIA /bin/v-add-cron-job ' admin' ' */2' ' *' ' *' ' *' ' *' " $command "
17941796command=" sudo $HESTIA /bin/v-backup-users"
17951797$HESTIA /bin/v-add-cron-job ' admin' ' 10' ' 05' ' *' ' *' ' *' " $command "
17961798command=" sudo $HESTIA /bin/v-update-user-stats"
Original file line number Diff line number Diff line change @@ -1687,6 +1687,8 @@ command="sudo $HESTIA/bin/v-update-sys-queue webstats"
16871687$HESTIA /bin/v-add-cron-job ' admin' ' 30' ' 03' ' *' ' *' ' *' " $command "
16881688command=" sudo $HESTIA /bin/v-update-sys-queue backup"
16891689$HESTIA /bin/v-add-cron-job ' admin' ' */5' ' *' ' *' ' *' ' *' " $command "
1690+ command=" sudo $HESTIA /bin/v-update-sys-queue restart"
1691+ $HESTIA /bin/v-add-cron-job ' admin' ' */2' ' *' ' *' ' *' ' *' " $command "
16901692command=" sudo $HESTIA /bin/v-backup-users"
16911693$HESTIA /bin/v-add-cron-job ' admin' ' 10' ' 05' ' *' ' *' ' *' " $command "
16921694command=" sudo $HESTIA /bin/v-update-user-stats"
Original file line number Diff line number Diff line change 2121
2222# Implement recidive jail for fail2ban
2323if [ ! -z " $FIREWALL_EXTENSION " ]; then
24- if ! cat /etc/fail2ban/jail.local | grep -q " recidive" ; then
24+ if ! cat /etc/fail2ban/jail.local | grep -q " \[ recidive\] " ; then
2525 echo -e " \n\n[recidive]\nenabled = true\nfilter = recidive\naction = hestia[name=HESTIA]\nlogpath = /var/log/fail2ban.log\nmaxretry = 3\nfindtime = 86400\nbantime = 864000" >> /etc/fail2ban/jail.local
2626 fi
2727fi
@@ -34,4 +34,9 @@ if [ ! -z "$IMAP_SYSTEM" ]; then
3434 cp -f /etc/nginx/conf.d/webmail.inc $HESTIA_BACKUP /conf/
3535 sed -i " s/config|temp|logs/README.md|config|temp|logs|bin|SQL|INSTALL|LICENSE|CHANGELOG|UPGRADING/g" /etc/nginx/conf.d/webmail.inc
3636 fi
37- fi
37+ fi
38+
39+ if [ -z " $( v-list-cron-jobs admin | grep ' v-update-sys-queue backup' ) " ]; then
40+ command=" sudo $BIN /v-update-sys-queue restart"
41+ $BIN /v-add-cron-job ' admin' ' */2' ' *' ' *' ' *' ' *' " $command "
42+ fi
You can’t perform that action at this time.
0 commit comments