File: /var/lib/dpkg/info/imunify360-webshield-bundle.postrm
#!/bin/sh
# postrm script for imunify360-webshield-bundle
#
# see: dh_installdeb(1)
set -e
# summary of how this script can be called:
# * <postrm> `remove'
# * <postrm> `purge'
# * <old-postrm> `upgrade' <new-version>
# * <new-postrm> `failed-upgrade' <old-version>
# * <new-postrm> `abort-install'
# * <new-postrm> `abort-install' <old-version>
# * <new-postrm> `abort-upgrade' <old-version>
# * <disappearer's-postrm> `disappear' <overwriter>
# <overwriter-version>
# for details, see https://www.debian.org/doc/debian-policy/ or
# the debian-policy package
case "$1" in
purge|remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
#DUMMY_PEM=/etc/imunify360-webshield/ssl_certs/dummy.pem
#rm -f $DUMMY_PEM
# delete reserve ports for webshield on uninstall
RESERVED_PORTS_PATH=/etc/sysctl.d/90-webshield-ip-local-reserved.conf
if [ -e $RESERVED_PORTS_PATH ];then
rm -f $RESERVED_PORTS_PATH
fi
if dpkg-maintscript-helper supports rm_conffile 2>/dev/null; then
dpkg-maintscript-helper rm_conffile /etc/imunify360-webshield/webshield-http.conf.d/wsuserid.conf 1.7-5 -- "$@"
fi
# sslcache
rm -rf /var/lib/imunify360-webshield-ssl-cache
;;
*)
echo "postrm called with unknown argument \`$1'" >&2
exit 1
;;
esac
# dh_installdeb will replace this with shell code automatically
# generated by other debhelper scripts.
# Automatically added by dh_installinit/12.10ubuntu1
if [ "$1" = "purge" ] ; then
update-rc.d imunify360-webshield-ssl-cache remove >/dev/null
fi
# End automatically added section
# Automatically added by dh_installinit/12.10ubuntu1
if [ "$1" = "purge" ] ; then
update-rc.d imunify360-wafd remove >/dev/null
fi
# End automatically added section
# Automatically added by dh_installinit/12.10ubuntu1
if [ "$1" = "purge" ] ; then
update-rc.d imunify360-webshield remove >/dev/null
fi
# End automatically added section
# Automatically added by dh_systemd_start/12.10ubuntu1
if [ -d /run/systemd/system ]; then
systemctl --system daemon-reload >/dev/null || true
fi
# End automatically added section
exit 0