25 lines
663 B
Bash
Executable File
25 lines
663 B
Bash
Executable File
#!/bin/sh
|
|
# Cleans up state directories on purge. /etc/authforge/ holds policy
|
|
# config; /var/lib/authforge/ holds runtime state (pending flags,
|
|
# recovery hashes, TOTP secrets, userdb). Both are intentionally
|
|
# preserved on plain remove — admin state survives a remove/install
|
|
# round-trip, which matches Debian Policy §6.6 "Removing the package".
|
|
set -e
|
|
|
|
case "$1" in
|
|
purge)
|
|
rm -rf /etc/authforge
|
|
rm -rf /var/lib/authforge
|
|
;;
|
|
remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
|
|
;;
|
|
*)
|
|
echo "postrm called with unknown argument \`$1'" >&2
|
|
exit 1
|
|
;;
|
|
esac
|
|
|
|
#DEBHELPER#
|
|
|
|
exit 0
|