From 653f29e2d8c297ffc8257fa56b831bcb7dbfcce2 Mon Sep 17 00:00:00 2001 From: Jeremy Lecour Date: Thu, 12 Jan 2023 16:48:57 +0100 Subject: [PATCH] =?UTF-8?q?grep=20silencieux=20et=20optimis=C3=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- linux/evocheck.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/linux/evocheck.sh b/linux/evocheck.sh index fb29166..9c00529 100755 --- a/linux/evocheck.sh +++ b/linux/evocheck.sh @@ -480,7 +480,7 @@ check_fail2ban_purge() { # Vérification qu'il ne reste pas des jails nommées ssh non renommées en sshd check_ssh_fail2ban_jail_renamed() { if is_installed fail2ban && [ -f /etc/fail2ban/jail.local ]; then - if grep "\[ssh\]" /etc/fail2ban/jail.local; then + if grep --quiet --fixed-strings "[ssh]" /etc/fail2ban/jail.local; then failed "IS_SSH_FAIL2BAN_JAIL_RENAMED" "Jail ssh must be renamed sshd in fail2ban >= 0.9." fi fi