]>
Commit | Line | Data |
---|---|---|
b28253d6 DM |
1 | #!/bin/sh |
2 | ||
3 | set -e | |
4 | ||
5 | #DEBHELPER# | |
6 | ||
7 | case "$1" in | |
8 | configure) | |
9 | # modeled after dh_systemd_start output | |
10 | systemctl --system daemon-reload >/dev/null || true | |
11 | if [ -n "$2" ]; then | |
12 | _dh_action=try-restart | |
13 | else | |
14 | _dh_action=start | |
15 | fi | |
16 | deb-systemd-invoke $_dh_action proxmox-backup.service >/dev/null || true | |
17 | ||
18 | if [ -n "$2" ]; then | |
19 | _dh_action=try-reload-or-restart | |
20 | else | |
21 | _dh_action=start | |
22 | fi | |
23 | deb-systemd-invoke $_dh_action proxmox-backup-proxy.service >/dev/null || true | |
24 | ;; | |
25 | ||
26 | abort-upgrade|abort-remove|abort-deconfigure) | |
27 | ;; | |
28 | ||
29 | *) | |
30 | echo "postinst called with unknown argument \`$1'" >&2 | |
31 | exit 1 | |
32 | ;; | |
33 | esac | |
34 | ||
35 | exit 0 |