From: Dinko Korunic Date: Sun, 24 Apr 2011 15:15:57 +0000 (+0200) Subject: - regex update X-Git-Tag: v0.8.5~3 X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?a=commitdiff_plain;h=ce0d4ab7aeae0f232197273c4fcddc715a7f099e;p=fail2ban-cn.git - regex update --- diff --git a/debian/postinst b/debian/postinst index f404e47..ac48914 100755 --- a/debian/postinst +++ b/debian/postinst @@ -34,7 +34,7 @@ CONF=/etc/fail2ban/jail.conf if [ -e "$CONF" ]; then # enable ssh, pam-generic, sasl, proftpd and vsftpd service - perl -ne 'if (/\[(ssh|pam-generic|sasl|proftpd|vsftpd)\]/ .. /enabled/) { $_ =~ s/^enabled\s=\sfalse/enabled = true/gi }; print $_' "$CONF" > "$CONF.$$" && \ + perl -ne 'if (/^\[(ssh|pam-generic|sasl|proftpd|vsftpd)\]/ .. /^enabled/) { $_ =~ s/^enabled\s=\sfalse/enabled = true/gi }; print $_' "$CONF" > "$CONF.$$" && \ cp_mv "$CONF.$$" "$CONF" rm -f "$CONF.$$"