mirror of
https://github.com/fail2ban/fail2ban.git
synced 2026-03-11 08:55:31 +00:00
change sed to perl for Solaris
This commit is contained in:
parent
76c08cebe9
commit
de98e3dabd
1 changed files with 5 additions and 1 deletions
|
|
@ -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]
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue