- use cp_mv instead of ordinary mv
authorDinko Korunic <kreator@carnet.hr>
Tue, 20 Jan 2009 13:01:25 +0000 (14:01 +0100)
committerDinko Korunic <kreator@carnet.hr>
Tue, 20 Jan 2009 13:01:25 +0000 (14:01 +0100)
debian/postinst

index 0635772..9bd5843 100755 (executable)
@@ -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