From b7795addd0958919fed3ee6b4c0f2a993e31cbd4 Mon Sep 17 00:00:00 2001 From: jamesstout Date: Tue, 30 Apr 2013 04:10:32 +0800 Subject: [PATCH] ENH: actionunban back to a sed command per https://github.com/fail2ban/fail2ban/pull/182#discussion_r3999128 --- config/action.d/hostsdeny.conf | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/config/action.d/hostsdeny.conf b/config/action.d/hostsdeny.conf index db36aa29..6f324e1e 100644 --- a/config/action.d/hostsdeny.conf +++ b/config/action.d/hostsdeny.conf @@ -40,11 +40,7 @@ actionban = IP= && # Tags: See jail.conf(5) man page # Values: CMD # -# Original: -#actionunban = IP= && sed -i.old /ALL:\ $IP/d - -# -i is not supported under Solaris 10/OpenSolaris -actionunban = IP= && perl -ne "print unless (/^ALL:\s$IP/)" -i +actionunban = IP= && sed /ALL:\ $IP/d > .new && mv .new [Init]