/usr/share/doc/ca-certificates/examples/ca-certificates-local/debian/postrm is in ca-certificates 20161130+nmu1+deb9u1.
This file is owned by root:root, with mode 0o644.
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 | #!/bin/sh
set -e
case "$1" in
purge|remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
# Recreate the /usr/local/share/ca-certificates directory, since we are
# ignoring Debian Policy by intentionally installing here. Removal of
# ca-certificates-local removes this directory if empty.
if [ ! -e /usr/local/share/ca-certificates ]; then
if mkdir /usr/local/share/ca-certificates 2>/dev/null; then
chown root:staff /usr/local/share/ca-certificates
chmod 2775 /usr/local/share/ca-certificates
fi
fi
;;
*)
echo "postrm called with unknown argument \`$1'" >&2
exit 1
;;
esac
#DEBHELPER#
exit 0
|