Skip to content

Commit 1ff8a4e

Browse files
authored
hestiacp#2594 Enable f2b on boot for new installs (hestiacp#2596)
1 parent 95e646e commit 1ff8a4e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

install/hst-install-ubuntu.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1833,8 +1833,11 @@ if [ "$fail2ban" = 'yes' ]; then
18331833
if [ -f /etc/fail2ban/jail.d/defaults-debian.conf ]; then
18341834
rm -f /etc/fail2ban/jail.d/defaults-debian.conf
18351835
fi
1836-
1836+
18371837
update-rc.d fail2ban defaults
1838+
# Ubuntu 22.04 doesn't start F2B by default on boot
1839+
update-rc.d fail2ban enable
1840+
18381841
systemctl start fail2ban >> $LOG
18391842
check_result $? "fail2ban start failed"
18401843
fi

0 commit comments

Comments
 (0)