mirror of
git://git.proxmox.com/git/pve-ha-manager.git
synced 2025-01-18 10:03:53 +03:00
d/postinst: make deb-systemd-invoke non-fatal
else this can break an upgrade for unrelated reasons. this also mimics debhelper behaviour more (which we only not use here because of lack of reload support) - restructured the snippet to be more similar with an explicit `if` as well. Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
This commit is contained in:
parent
2db44501bc
commit
8bac62a877
10
debian/pve-ha-manager.postinst
vendored
10
debian/pve-ha-manager.postinst
vendored
@ -5,11 +5,13 @@ 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
|
||||
if systemctl --quiet is-active pve-ha-lrm.service; then
|
||||
deb-systemd-invoke reload-or-try-restart pve-ha-lrm.service || true
|
||||
fi
|
||||
|
||||
systemctl --quiet is-active pve-ha-crm.service &&
|
||||
deb-systemd-invoke reload-or-try-restart pve-ha-crm.service
|
||||
if systemctl --quiet is-active pve-ha-crm.service; then
|
||||
deb-systemd-invoke reload-or-try-restart pve-ha-crm.service || true
|
||||
fi
|
||||
fi
|
||||
|
||||
exit 0
|
||||
|
Loading…
x
Reference in New Issue
Block a user