From d72e0f83421512275ed173820d83af17a2ca7e0a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E8=B4=BA?= Date: Fri, 26 Dec 2025 16:54:45 +0800 Subject: [PATCH] Add support for Almalinux in install_fail2ban.sh --- sh/install_fail2ban.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sh/install_fail2ban.sh b/sh/install_fail2ban.sh index e9d323f..9f5a089 100644 --- a/sh/install_fail2ban.sh +++ b/sh/install_fail2ban.sh @@ -1,7 +1,7 @@ #!/bin/bash # Install Fail2ban -# Support Ubuntu/Debian/CentOS/RHEL/Alpine/Arch Linux +# Support Ubuntu/Debian/CentOS/RHEL/Almalinux/Alpine/Arch Linux set -e @@ -45,7 +45,7 @@ install_fail2ban() { fi apt-get install -y fail2ban ;; - centos|rhel|fedora) + centos|rhel|fedora|almalinux) if [ "$OS" = "rhel" ] && [ "${VERSION%%.*}" -ge 8 ]; then dnf install -y epel-release dnf install -y fail2ban @@ -121,7 +121,7 @@ start_service() { systemctl enable fail2ban systemctl restart fail2ban ;; - centos|rhel|fedora) + centos|rhel|fedora|almalinux) systemctl enable fail2ban systemctl restart fail2ban ;;