#!/bin/sh set -e # Automatically added by dh_installinit/14.5 if [ "$1" = "remove" ] && [ -x "/etc/init.d/fail2ban" ] ; then chmod -x "/etc/init.d/fail2ban" >/dev/null || true fi if [ -z "$DPKG_ROOT" ] && [ "$1" = "purge" ] ; then update-rc.d fail2ban remove >/dev/null fi # End automatically added section # Automatically added by dh_installdeb/14.5 dpkg-maintscript-helper rm_conffile /etc/fail2ban/filter.d/sshd-ddos.conf 1.1.1-1\~ -- "$@" dpkg-maintscript-helper rm_conffile /etc/fail2ban/filter.d/postfix-sasl.conf 1.1.1-1\~ -- "$@" dpkg-maintscript-helper rm_conffile /etc/fail2ban/filter.d/postfix-rbl.conf 1.1.1-1\~ -- "$@" dpkg-maintscript-helper rm_conffile /etc/fail2ban/action.d/nftables-common.conf 1.1.1-1\~ -- "$@" dpkg-maintscript-helper rm_conffile /etc/fail2ban/action.d/iptables-common.conf 1.1.1-1\~ -- "$@" dpkg-maintscript-helper rm_conffile /etc/fail2ban/action.d/badips.conf 1.1.1-1\~ -- "$@" dpkg-maintscript-helper rm_conffile /etc/fail2ban/action.d/badips.py 1.1.1-1\~ -- "$@" dpkg-maintscript-helper rm_conffile /etc/bash_completion.d/fail2ban 1.1.1-1\~ -- "$@" dpkg-maintscript-helper mv_conffile /etc/monit/monitrc.d/fail2ban /etc/monit/conf-available/fail2ban 1.1.1-1\~ -- "$@" # End automatically added section # Automatically added by dh_cruft/0.9.88 if [ "$1" = "purge" ] then # we need to glob, so no quotes rm -rf ${DPKG_ROOT:-}/etc/fail2ban.conf rm -rf ${DPKG_ROOT:-}/var/log/fail2ban* rm -rf ${DPKG_ROOT:-}/var/lib/fail2ban/fail2ban.sqlite3 fi # End automatically added section # Automatically added by dh_installsystemd/14.5 if [ "$1" = remove ] && [ -d /run/systemd/system ] ; then systemctl --system daemon-reload >/dev/null || true fi # End automatically added section # Automatically added by dh_installsystemd/14.5 if [ "$1" = "purge" ]; then deb-systemd-helper purge 'fail2ban.service' >/dev/null || true fi # End automatically added section