Преглед изворни кода

#2594 Enable f2b on boot for new installs (#2596)

Jaap Marcus пре 3 година
родитељ
комит
1ff8a4e520
1 измењених фајлова са 4 додато и 1 уклоњено
  1. 4 1
      install/hst-install-ubuntu.sh

+ 4 - 1
install/hst-install-ubuntu.sh

@@ -1833,8 +1833,11 @@ if [ "$fail2ban" = 'yes' ]; then
     if [ -f /etc/fail2ban/jail.d/defaults-debian.conf ]; then
         rm -f /etc/fail2ban/jail.d/defaults-debian.conf
     fi
-
+  
     update-rc.d fail2ban defaults
+    # Ubuntu 22.04 doesn't start F2B by default on boot
+    update-rc.d fail2ban enable
+    
     systemctl start fail2ban >> $LOG
     check_result $? "fail2ban start failed"
 fi