26 lines
503 B
Bash
26 lines
503 B
Bash
#!/bin/sh
|
|
set -e
|
|
|
|
case "$1" in
|
|
purge)
|
|
# Remove data directory only on purge, not plain remove
|
|
rm -rf /var/lib/age-verification
|
|
rm -rf /etc/age-verification
|
|
if [ -d /run/systemd/system ]; then
|
|
systemctl daemon-reload >/dev/null 2>&1 || true
|
|
fi
|
|
;;
|
|
|
|
remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
|
|
;;
|
|
|
|
*)
|
|
echo "postrm called with unknown argument '$1'" >&2
|
|
exit 1
|
|
;;
|
|
esac
|
|
|
|
#DEBHELPER#
|
|
|
|
exit 0
|