From de98e3dabd2b9a1b728955fe4e7727aac2c8407b Mon Sep 17 00:00:00 2001 From: jamesstout Date: Sun, 21 Apr 2013 07:29:48 +0800 Subject: [PATCH] change sed to perl for Solaris --- config/action.d/hostsdeny.conf | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/config/action.d/hostsdeny.conf b/config/action.d/hostsdeny.conf index b04f2adb..db36aa29 100644 --- a/config/action.d/hostsdeny.conf +++ b/config/action.d/hostsdeny.conf @@ -40,7 +40,11 @@ actionban = IP= && # Tags: See jail.conf(5) man page # Values: CMD # -actionunban = IP= && sed -i.old /ALL:\ $IP/d +# 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 [Init]