#!/bin/sh set -e # summary of how this script can be called: # * `remove' # * `purge' # * `upgrade' # * `failed-upgrade' # * `abort-install' # * `abort-install' # * `abort-upgrade' # * `disappear' overwrit>r> # for details, see /usr/share/doc/packaging-manual/ case "$1" in purge) rm -rf /var/lib/shorewall6 ;; remove|upgrade|failed-upgrade|abort-*|disappear) ;; *) echo "postrm called with unknown argument \`$1'" >&2 exit 0 esac # Automatically added by dh_installinit/13.11.8 if [ "$1" = "remove" ] && [ -x "/etc/init.d/shorewall6" ] ; then chmod -x "/etc/init.d/shorewall6" >/dev/null || true fi if [ -z "${DPKG_ROOT:-}" ] && [ "$1" = "purge" ] ; then update-rc.d shorewall6 remove >/dev/null fi # End automatically added section # Automatically added by dh_installsystemd/13.11.8 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/13.11.8 if [ "$1" = "purge" ]; then if [ -x "/usr/bin/deb-systemd-helper" ]; then deb-systemd-helper purge 'shorewall6.service' >/dev/null || true fi fi # End automatically added section