From: Dinko Korunic Date: Tue, 20 Jan 2009 13:01:25 +0000 (+0100) Subject: - use cp_mv instead of ordinary mv X-Git-Tag: v0.8.5~10 X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?a=commitdiff_plain;h=701a9a4d44a995657ad814f6efeb2eedb25a1459;p=fail2ban-cn.git - use cp_mv instead of ordinary mv --- diff --git a/debian/postinst b/debian/postinst index 0635772..9bd5843 100755 --- 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