]> git.proxmox.com Git - pve-ha-manager.git/blame - debian/postinst
postinst: drop transitional systemd watchdog mux socket cleanup
[pve-ha-manager.git] / debian / postinst
CommitLineData
f8a3fc80
TL
1#!/bin/bash
2
3# Abort if any command returns an error value
4set -e
5
6# This script is called as the last step of the installation of the
7# package. All the package's files are in place, dpkg has already
8# done its automatic conffile handling, and all the packages we depend
9# of are already fully installed and configured.
10
11# The following idempotent stuff doesn't generally need protecting
12# against being run in the abort-* cases.
13
14# Use debconf. (installs templates)
15. /usr/share/debconf/confmodule
16# all done with debconf here.
17db_stop
18
19case "$1" in
20 triggered)
21 # We don't print a status message here, as dpkg already said
22 # "Processing triggers for ...".
042a5d2d
TL
23 systemctl --quiet is-active pve-ha-lrm.service && deb-systemd-invoke reload-or-try-restart pve-ha-lrm.service
24 systemctl --quiet is-active pve-ha-crm.service && deb-systemd-invoke reload-or-try-restart pve-ha-crm.service
f8a3fc80
TL
25 exit 0;;
26
27 configure)
f8a3fc80
TL
28 ;;
29
30 abort-upgrade|abort-remove|abort-deconfigure)
31 exit 0
32 ;;
33
34 *)
35 echo "postinst called with unknown argument \`$1'" >&2
36 exit 1
37 ;;
38
39esac
40
8d357f30
DM
41# dh_installdeb will replace this with shell code automatically
42# generated by other debhelper scripts.
43
44#DEBHELPER#
f8a3fc80
TL
45
46exit 0