debian/post{inst,rm},preinst: - [thanks to Daniel Schaal]: take care about renaming firewall-cmd-direct-new.conf to firewallcmd-new.conf which happened

in 0.8.11-29-g56b6bf7
pull/808/head
Yaroslav Halchenko 11 years ago
parent 7376bb4321
commit 1d23a4dc4f

4
debian/changelog vendored

@ -6,6 +6,10 @@ fail2ban (0.8.13-1) unstable; urgency=low
- new jail definitions: apache-modsecurity, apache-nohome, freeswitch,
ejabberd-auth, ssh-blocklist, nagios
- new configuration option: ignorecommand
* debian/post{inst,rm},preinst:
- [thanks to Daniel Schaal]: take care about renaming
- firewall-cmd-direct-new.conf to firewallcmd-new.conf which happened
in 0.8.11-29-g56b6bf7
-- Yaroslav Halchenko <debian@onerussian.com> Tue, 18 Mar 2014 23:13:35 -0400

4
debian/postinst vendored

@ -80,6 +80,10 @@ EOF
;;
esac
if dpkg-maintscript-helper supports mv_conffile 2>/dev/null; then
dpkg-maintscript-helper mv_conffile /etc/fail2ban/action.d/firewall-cmd-direct-new.conf /etc/fail2ban/action.d/firewallcmd-new.conf 0.8.13-1~ -- "$@"
fi
# dh_installdeb will replace this with shell code automatically
# generated by other debhelper scripts.

4
debian/postrm vendored

@ -34,6 +34,10 @@ case "$1" in
;;
esac
if dpkg-maintscript-helper supports mv_conffile 2>/dev/null; then
dpkg-maintscript-helper mv_conffile /etc/fail2ban/action.d/firewall-cmd-direct-new.conf /etc/fail2ban/action.d/firewallcmd-new.conf 0.8.13-1~ -- "$@"
fi
# dh_installdeb will replace this with shell code automatically
# generated by other debhelper scripts.

11
debian/preinst vendored

@ -0,0 +1,11 @@
#!/bin/sh
set -e
if dpkg-maintscript-helper supports mv_conffile 2>/dev/null; then
dpkg-maintscript-helper mv_conffile /etc/fail2ban/action.d/firewall-cmd-direct-new.conf /etc/fail2ban/action.d/firewallcmd-new.conf 0.8.13-1~ -- "$@"
fi
#DEBHELPER#
exit 0
Loading…
Cancel
Save