[pve-devel] [PATCH ha-manager 3/3] postinst: use auto generated postinst

Thomas Lamprecht t.lamprecht at proxmox.com
Wed Jan 24 11:04:56 CET 2018


This was introduced for cleaning up an possible left over systemd
watchdog mux enable link, which is gone for good now.

Then it was extended with trigger targets, as the HA Manager services
now restart when the pve-api-update trigger fires.
As the autogenerated postinst does the same unconditionally for the
pve-ha-lrm.service and pve-ha-crm.service already we may remove it
too.
The only difference is that try-restart is used by the auto generated
script, not reload-or-try-restart, but this does not matter, as the
HA services have currently no reload ability.

Signed-off-by: Thomas Lamprecht <t.lamprecht at proxmox.com>
---
 debian/postinst | 38 --------------------------------------
 1 file changed, 38 deletions(-)
 delete mode 100755 debian/postinst

diff --git a/debian/postinst b/debian/postinst
deleted file mode 100755
index 916d2bc..0000000
--- a/debian/postinst
+++ /dev/null
@@ -1,38 +0,0 @@
-#!/bin/bash
-
-# Abort if any command returns an error value
-set -e
-
-# This script is called as the last step of the installation of the
-# package.  All the package's files are in place, dpkg has already
-# done its automatic conffile handling, and all the packages we depend
-# of are already fully installed and configured.
-
-case "$1" in
-  triggered)
-    # We don't print a status message here, as dpkg already said
-    # "Processing triggers for ...".
-    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
-    exit 0;;
-
-  configure)
-      ;;
-
-  abort-upgrade|abort-remove|abort-deconfigure)
-    exit 0
-    ;;
-
-  *)
-    echo "postinst called with unknown argument \`$1'" >&2
-    exit 1
-    ;;
-
-esac
-
-# dh_installdeb will replace this with shell code automatically
-# generated by other debhelper scripts.
-
-#DEBHELPER#
-
-exit 0
-- 
2.14.2





More information about the pve-devel mailing list