From 1b75f226e6ddf2cea7543466672afc6caf6db847 Mon Sep 17 00:00:00 2001 From: Dinko Korunic Date: Sun, 24 Apr 2011 17:12:47 +0200 Subject: [PATCH] - pravilniji regex.. --- debian/postinst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/debian/postinst b/debian/postinst index 19a2436..f404e47 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 = false/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.$$" -- 1.7.10.4