]>
Commit | Line | Data |
---|---|---|
0854fb22 DM |
1 | #!/bin/sh |
2 | ||
3 | set -e | |
4 | ||
5 | ||
6 | case "$1" in | |
3cf7a549 DM |
7 | triggered) |
8 | ||
9 | test -e /proxmox_install_mode && exit 0; | |
10 | ||
11 | # Note: reload-or-try-restart fails if service is not active | |
12 | systemctl --quiet is-active pmgdaemon.service && deb-systemd-invoke reload-or-try-restart pmgdaemon.service | |
13 | systemctl --quiet is-active pmgproxy.service && deb-systemd-invoke reload-or-try-restart pmgproxy.service | |
14 | ||
15 | exit 0 | |
16 | ;; | |
17 | ||
0854fb22 DM |
18 | configure) |
19 | ;; | |
20 | ||
21 | abort-upgrade|abort-remove|abort-deconfigure) | |
22 | ;; | |
23 | ||
24 | *) | |
25 | echo "postinst called with unknown argument \`$1'" >&2 | |
26 | exit 1 | |
27 | ;; | |
28 | esac | |
29 | ||
30 | # dh_installdeb will replace this with shell code automatically | |
31 | # generated by other debhelper scripts. | |
32 | ||
33 | #DEBHELPER# | |
34 | ||
35 | exit 0 |