feat(packaging): postinst that enables + starts authforge-daemon

This commit is contained in:
michael
2026-04-26 20:42:01 -07:00
parent 49def6e75c
commit aeebfd0f40

18
debian/authforge-daemon.postinst vendored Executable file
View File

@@ -0,0 +1,18 @@
#!/bin/sh
set -e
#DEBHELPER#
case "$1" in
configure)
if [ -d /run/systemd/system ]; then
systemctl daemon-reload || true
if [ -z "${DPKG_ROOT:-}" ]; then
deb-systemd-helper enable authforge-daemon.service >/dev/null || true
deb-systemd-invoke start authforge-daemon.service >/dev/null || true
fi
fi
;;
esac
exit 0