feat(pkg): authforge-pam postinst calls pam-auth-update --package

This commit is contained in:
michael
2026-04-27 17:29:15 -07:00
parent ea75c03f55
commit 41ea0a1af8

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

@@ -0,0 +1,24 @@
#!/bin/sh
# Registers /usr/share/pam-configs/authforge via pam-auth-update on first
# install and reconfigure events. The profile ships Default: no, so this
# is a no-op for fresh installs — the metapackage's debconf flow flips it
# on if the admin opted in. Idempotent: safe to call repeatedly.
set -e
case "$1" in
configure)
if [ -x /usr/sbin/pam-auth-update ]; then
pam-auth-update --package
fi
;;
abort-upgrade|abort-remove|abort-deconfigure)
;;
*)
echo "postinst called with unknown argument \`$1'" >&2
exit 1
;;
esac
#DEBHELPER#
exit 0