projects
/
fail2ban-cn.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
3f10bd9
)
- pravilniji regex..
author
Dinko Korunic
<kreator@carnet.hr>
Sun, 24 Apr 2011 15:12:47 +0000
(17:12 +0200)
committer
Dinko Korunic
<kreator@carnet.hr>
Sun, 24 Apr 2011 15:12:47 +0000
(17:12 +0200)
debian/postinst
patch
|
blob
|
history
diff --git
a/debian/postinst
b/debian/postinst
index
19a2436
..
f404e47
100755
(executable)
--- 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
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.$$"
cp_mv "$CONF.$$" "$CONF"
rm -f "$CONF.$$"