From 9ed39a4387c935222b95a071a1176c1a561115e0 Mon Sep 17 00:00:00 2001 From: Cyril Jaquier Date: Wed, 16 Jul 2008 21:11:42 +0000 Subject: [PATCH] - Send file if the number of lines is greater or equal and not only equal to the limit. git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/branches/FAIL2BAN-0_8@701 a942ae1a-1317-0410-a47c-b1dcaea8d605 --- config/action.d/mail-buffered.conf | 2 +- config/action.d/sendmail-buffered.conf | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/config/action.d/mail-buffered.conf b/config/action.d/mail-buffered.conf index 750bfca9..8a33d0ea 100644 --- a/config/action.d/mail-buffered.conf +++ b/config/action.d/mail-buffered.conf @@ -50,7 +50,7 @@ actioncheck = # actionban = printf %%b "`date`: ( failures)\n" >> LINE=$( wc -l | awk '{ print $1 }' ) - if [ $LINE -eq ]; then + if [ $LINE -ge ]; then printf %%b "Hi,\n These hosts have been banned by Fail2Ban.\n `cat ` diff --git a/config/action.d/sendmail-buffered.conf b/config/action.d/sendmail-buffered.conf index 698981a0..de8166ad 100644 --- a/config/action.d/sendmail-buffered.conf +++ b/config/action.d/sendmail-buffered.conf @@ -59,7 +59,7 @@ actioncheck = # actionban = printf %%b "`date`: ( failures)\n" >> LINE=$( wc -l | awk '{ print $1 }' ) - if [ $LINE -eq ]; then + if [ $LINE -ge ]; then printf %%b "Subject: [Fail2Ban] : summary From: Fail2Ban <> To: \n