From e7cbfe3bfbbadbdcf2d915df2a68ff17fba9eba1 Mon Sep 17 00:00:00 2001 From: Dinko Korunic Date: Sun, 24 Apr 2011 17:22:46 +0200 Subject: [PATCH] - regex updates --- debian/postinst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/debian/postinst b/debian/postinst index ac48914..f34cc6a 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+=\s+false/enabled = true/gi }; print $_' "$CONF" > "$CONF.$$" && \ cp_mv "$CONF.$$" "$CONF" rm -f "$CONF.$$" -- 1.7.10.4