]>
Commit | Line | Data |
---|---|---|
f8a3fc80 TL |
1 | #!/bin/bash |
2 | ||
3 | # Abort if any command returns an error value | |
4 | set -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. | |
17 | db_stop | |
18 | ||
19 | case "$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 | ||
39 | esac | |
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 | |
46 | exit 0 |