From 701a9a4d44a995657ad814f6efeb2eedb25a1459 Mon Sep 17 00:00:00 2001 From: Dinko Korunic Date: Tue, 20 Jan 2009 14:01:25 +0100 Subject: [PATCH] - use cp_mv instead of ordinary mv --- debian/postinst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 1.7.10.4