change sed to perl for Solaris

pull/182/head
jamesstout 2013-04-21 07:29:48 +08:00
parent 76c08cebe9
commit de98e3dabd
1 changed files with 5 additions and 1 deletions

View File

@ -40,7 +40,11 @@ actionban = IP=<ip> &&
# Tags: See jail.conf(5) man page
# Values: CMD
#
actionunban = IP=<ip> && sed -i.old /ALL:\ $IP/d <file>
# Original:
#actionunban = IP=<ip> && sed -i.old /ALL:\ $IP/d <file>
# -i is not supported under Solaris 10/OpenSolaris
actionunban = IP=<ip> && perl -ne "print unless (/^ALL:\s$IP/)" -i <file>
[Init]