postrm is in unbound 1.4.16-1.
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 | #!/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_installinit
if [ "$1" = "purge" ] ; then
update-rc.d unbound remove >/dev/null
fi
# End automatically added section
|