We wrongly dropped the semi-manual postinst in favor of a fully
auto-generated one, but we always need to generate the trigger
actions ourself - cannot work otherwise.
Fix
3166752 ("postinst: use auto generated postinst")
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
pve-ha-manager: repeated-trigger-name pve-api-updates (lines 1 2)
+pve-ha-manager: maintainer-script-calls-systemctl postinst
--- /dev/null
+#!/bin/sh
+
+set -e
+
+#DEBHELPER#
+
+if [ "$1" = "triggered" ]; then
+ systemctl --quiet is-active pve-ha-lrm.service &&
+ deb-systemd-invoke reload-or-try-restart pve-ha-lrm.service
+
+ systemctl --quiet is-active pve-ha-crm.service &&
+ deb-systemd-invoke reload-or-try-restart pve-ha-crm.service
+fi
+
+exit 0