Compare commits

..

No commits in common. "91cba0bbda66214bce004c57093265e0263a00d1" and "2c6e6f2b517d73f298534d36632156e3e2f1a6ba" have entirely different histories.

2 changed files with 3 additions and 30 deletions

View File

@ -1,13 +1,3 @@
secubox-threat-analyst (1.4.2-1~bookworm1) bookworm; urgency=medium
* fix(postinst): build-safe service enable (#595). A plain `systemctl
enable` no-ops during offline/image-build installs, so the unit ended
up DISABLED on the live board → /threat-analyst/ page loaded but its
backend (stats/alerts/rules) was down. Now uses deb-systemd-helper
(persists the enable to first boot) + guarded daemon-reload/start.
-- Gerald KERMA <devel@cybermind.fr> Sun, 15 Jun 2026 11:00:00 +0200
secubox-threat-analyst (1.4.1-1~bookworm1) bookworm; urgency=low secubox-threat-analyst (1.4.1-1~bookworm1) bookworm; urgency=low
* Rewrite Description to identify this as the AI agent that * Rewrite Description to identify this as the AI agent that

View File

@ -1,26 +1,9 @@
#!/bin/sh #!/bin/sh
set -e set -e
if [ "$1" = "configure" ]; then if [ "$1" = "configure" ]; then
# #595 — build-safe enable: a plain `systemctl enable` no-ops during an systemctl daemon-reload
# offline / image-build (chroot) install, leaving the unit DISABLED on
# the live board (caught on gk2: /threat-analyst/ backend down). Use
# deb-systemd-helper (records the enable, applies on first boot) and only
# touch the running system when systemd is actually up.
if [ -d /run/systemd/system ]; then
systemctl daemon-reload || true
fi
if command -v deb-systemd-helper >/dev/null 2>&1; then
deb-systemd-helper enable secubox-threat-analyst.service >/dev/null 2>&1 || true
else
systemctl enable secubox-threat-analyst.service || true systemctl enable secubox-threat-analyst.service || true
fi
if [ -d /run/systemd/system ]; then
if command -v deb-systemd-invoke >/dev/null 2>&1; then
deb-systemd-invoke start secubox-threat-analyst.service >/dev/null 2>&1 || true
else
systemctl start secubox-threat-analyst.service || true systemctl start secubox-threat-analyst.service || true
fi fi
fi
fi
#DEBHELPER# #DEBHELPER#
exit 0 exit 0