From 5dc799c636608d04eacf4ea35109431c7977c160 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A7=91=E6=8A=80lion?= <131984541+kejilion@users.noreply.github.com> Date: Sun, 28 Sep 2025 18:19:15 +0800 Subject: [PATCH] Update kejilion.sh --- cn/kejilion.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cn/kejilion.sh b/cn/kejilion.sh index 79d57ea..79a6261 100644 --- a/cn/kejilion.sh +++ b/cn/kejilion.sh @@ -3038,7 +3038,7 @@ f2b_install_sshd() { start fail2ban enable fail2ban - if grep -q 'dnf' /etc/issue; then + if command -v dnf &>/dev/null; then cd /etc/fail2ban/jail.d/ curl -sS -O ${gh_proxy}raw.githubusercontent.com/kejilion/config/main/fail2ban/centos-ssh.conf fi