feat(pkg): authforge-pam prerm calls pam-auth-update --remove on uninstall

This commit is contained in:
michael
2026-04-27 17:36:39 -07:00
parent 41ea0a1af8
commit f9af34cbb3

24
debian/authforge-pam.prerm vendored Executable file
View File

@@ -0,0 +1,24 @@
#!/bin/sh
# Deregisters the authforge profile from /etc/pam.d/common-* before
# the .so disappears. Ordering matters: prerm runs before any files are
# removed, so /usr/share/pam-configs/authforge is still present here for
# pam-auth-update to inspect.
set -e
case "$1" in
remove|deconfigure)
if [ -x /usr/sbin/pam-auth-update ]; then
pam-auth-update --package --remove authforge
fi
;;
upgrade|failed-upgrade)
;;
*)
echo "prerm called with unknown argument \`$1'" >&2
exit 1
;;
esac
#DEBHELPER#
exit 0