feat(pkg): debconf prompt for initial AuthForge policy on metapackage install

This commit is contained in:
michael
2026-04-27 19:19:12 -07:00
parent cccca786f7
commit 753bf54aad
3 changed files with 27 additions and 0 deletions

14
debian/authforge.config vendored Executable file
View File

@@ -0,0 +1,14 @@
#!/bin/sh
# Asks the admin for an initial policy. Postinst (Task 6) reads the
# answer and writes /etc/authforge/policy.d/00-debconf.conf on first
# install only. Re-runs (e.g. `dpkg-reconfigure authforge`) re-prompt
# but do not overwrite an existing seed file unless the admin chose to.
set -e
# shellcheck source=/dev/null
. /usr/share/debconf/confmodule
db_input medium authforge/initial-policy || true
db_go || true
exit 0