X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=patches%2F0005-add-corosync-pve-postinst-for-restart-on-dist-upgrad.patch;fp=patches%2F0005-add-corosync-pve-postinst-for-restart-on-dist-upgrad.patch;h=0000000000000000000000000000000000000000;hb=54ebdd306feb253576709b72bc33d8a056789ee0;hp=ae25a75edee749a4c80d6bd1a349e8bee9e8b2ef;hpb=e77cc04ecc3f68c2f678eb959268f4a347ebd5d9;p=corosync-pve.git diff --git a/patches/0005-add-corosync-pve-postinst-for-restart-on-dist-upgrad.patch b/patches/0005-add-corosync-pve-postinst-for-restart-on-dist-upgrad.patch deleted file mode 100644 index ae25a75..0000000 --- a/patches/0005-add-corosync-pve-postinst-for-restart-on-dist-upgrad.patch +++ /dev/null @@ -1,32 +0,0 @@ -From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 -From: =?UTF-8?q?Fabian=20Gr=C3=BCnbichler?= -Date: Wed, 8 Mar 2017 14:08:04 +0100 -Subject: [PATCH] add corosync-pve postinst for restart on dist-upgrade -MIME-Version: 1.0 -Content-Type: text/plain; charset=UTF-8 -Content-Transfer-Encoding: 8bit - -Signed-off-by: Fabian Grünbichler ---- - debian/corosync-pve.postinst | 12 ++++++++++++ - 1 file changed, 12 insertions(+) - create mode 100755 debian/corosync-pve.postinst - -diff --git a/debian/corosync-pve.postinst b/debian/corosync-pve.postinst -new file mode 100755 -index 00000000..f282563f ---- /dev/null -+++ b/debian/corosync-pve.postinst -@@ -0,0 +1,12 @@ -+#!/bin/sh -+ -+set -e -+ -+if [ "$1" = "configure" ]; then -+ if [ -n "$2" ]; then -+ # switching package name from corosync-pve to corosync requires a manual restart on upgrade, once -+ if dpkg --compare-versions "$2" lt "2.4.2-pve1" ; then -+ deb-systemd-invoke try-restart corosync.service > /dev/null || true -+ fi -+ fi -+fi