From aeebfd0f4012bfdc1c4ab88c0c62ff64e129c638 Mon Sep 17 00:00:00 2001 From: michael Date: Sun, 26 Apr 2026 20:42:01 -0700 Subject: [PATCH] feat(packaging): postinst that enables + starts authforge-daemon --- debian/authforge-daemon.postinst | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100755 debian/authforge-daemon.postinst diff --git a/debian/authforge-daemon.postinst b/debian/authforge-daemon.postinst new file mode 100755 index 0000000..dbf2d7d --- /dev/null +++ b/debian/authforge-daemon.postinst @@ -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