2 # postrm script for monit-cn
4 # see: dh_installdeb(1)
8 # summary of how this script can be called:
11 # * <old-postrm> `upgrade' <new-version>
12 # * <new-postrm> `failed-upgrade' <old-version>
13 # * <new-postrm> `abort-install'
14 # * <new-postrm> `abort-install' <old-version>
15 # * <new-postrm> `abort-upgrade' <old-version>
16 # * <disappearer's-postrm> `disappear' <r>overwrit>r> <new-version>
17 # for details, see http://www.debian.org/doc/debian-policy/ or
18 # the debian-policy package
31 . /usr/share/carnet-tools/functions.sh
33 CONF=/etc/fail2ban/jail.conf
35 # remove us from inittab
36 echo "CN: Removing Dovecot support"
37 cp-update -r fail2ban-cn "$CONF"
39 # restart the services
40 if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then
41 invoke-rc.d fail2ban restart || exit $?
43 /etc/init.d/fail2ban restart || exit $?
46 # dh_installdeb will replace this with shell code automatically
47 # generated by other debhelper scripts.