1 From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
2 From: =?UTF-8?q?Fabian=20Gr=C3=BCnbichler?= <f.gruenbichler@proxmox.com>
3 Date: Wed, 8 Mar 2017 14:08:04 +0100
4 Subject: [PATCH] add corosync-pve postinst for restart on dist-upgrade
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
9 Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
11 debian/corosync-pve.postinst | 12 ++++++++++++
12 1 file changed, 12 insertions(+)
13 create mode 100755 debian/corosync-pve.postinst
15 diff --git a/debian/corosync-pve.postinst b/debian/corosync-pve.postinst
17 index 00000000..f282563f
19 +++ b/debian/corosync-pve.postinst
25 +if [ "$1" = "configure" ]; then
26 + if [ -n "$2" ]; then
27 + # switching package name from corosync-pve to corosync requires a manual restart on upgrade, once
28 + if dpkg --compare-versions "$2" lt "2.4.2-pve1" ; then
29 + deb-systemd-invoke try-restart corosync.service > /dev/null || true