5
0
mirror of git://git.proxmox.com/git/pve-ha-manager.git synced 2025-01-07 21:18:00 +03:00
pve-ha-manager/debian/pve-ha-manager.postinst
Thomas Lamprecht 8a25bf2969 d/postinst: fix restarting LRM/CRM when triggered
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>
2022-01-17 11:30:49 +01:00

16 lines
316 B
Bash

#!/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