]> git.proxmox.com Git - pmg-api.git/blob - debian/postinst
install pmg-smtp-filter.service
[pmg-api.git] / debian / postinst
1 #!/bin/sh
2
3 set -e
4
5
6 case "$1" in
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 systemctl --quiet is-active pmg-smtp-filter.service && deb-systemd-invoke reload-or-try-restart pmg-smtp-filter.service
15
16 exit 0
17 ;;
18
19 configure)
20
21 test -e /proxmox_install_mode || pmgdb init
22 test -e /proxmox_install_mode || pmgdb update >/dev/null 2>&1 &
23
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 # dh_installdeb will replace this with shell code automatically
36 # generated by other debhelper scripts.
37
38 #DEBHELPER#
39
40 exit 0