postrm is in unbound 1.5.8-1ubuntu1.
This file is a maintainer script. It is executed when installing (*inst) or removing (*rm) the package.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 | #!/bin/sh -e
if [ "$1" = remove ]; then
rm -rf /var/lib/unbound
deluser --quiet unbound >/dev/null || true
fi
if [ "$1" = purge ]; then
rm -f /etc/unbound/unbound_control.key \
/etc/unbound/unbound_control.pem \
/etc/unbound/unbound_server.key \
/etc/unbound/unbound_server.pem
rm -f /var/lib/unbound/root.key
fi
# Automatically added by dh_installdeb
dpkg-maintscript-helper rm_conffile /etc/default/unbound 1.5.7-2~ -- "$@"
# End automatically added section
# Automatically added by dh_installinit
if [ "$1" = "purge" ] ; then
update-rc.d unbound remove >/dev/null
fi
# In case this system is running systemd, we make systemd reload the unit files
# to pick up changes.
if [ -d /run/systemd/system ] ; then
systemctl --system daemon-reload >/dev/null || true
fi
# End automatically added section
|