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:
d1db472
)
- use cp_mv instead of ordinary mv
author
Dinko Korunic
<kreator@carnet.hr>
Tue, 20 Jan 2009 13:01:25 +0000
(14:01 +0100)
committer
Dinko Korunic
<kreator@carnet.hr>
Tue, 20 Jan 2009 13:01:25 +0000
(14:01 +0100)
debian/postinst
patch
|
blob
|
history
diff --git
a/debian/postinst
b/debian/postinst
index
0635772
..
9bd5843
100755
(executable)
--- a/
debian/postinst
+++ b/
debian/postinst
@@
-35,7
+35,7
@@
CONF=/etc/fail2ban/jail.conf
if [ -e "$CONF" ]; then
# enable ssh and pam-generic services
perl -ne 'if (/\[(ssh|pam-generic)\]/ .. /enabled/) { $_ =~ s/enabled = false/enabled = true/gi }; print $_' "$CONF" > "$CONF.$$" && \
- mv "$CONF.$$" "$CONF"
+ cp_mv "$CONF.$$" "$CONF"
rm -f "$CONF.$$"
# add network address and class if needed