9 test -e /proxmox_install_mode
&& exit 0;
11 # Note: reload-or-try-restart fails if service is not active
12 if systemctl
--quiet is-active pmgdaemon.service
; then
13 deb-systemd-invoke reload-or-try-restart pmgdaemon.service
16 if systemctl
--quiet is-active pmgproxy.service
; then
17 deb-systemd-invoke reload-or-try-restart pmgproxy.service
20 if systemctl
--quiet is-active pmg-smtp-filter.service
; then
21 deb-systemd-invoke reload-or-try-restart pmg-smtp-filter.service
24 if systemctl
--quiet is-active pmgpolicy.service
; then
25 deb-systemd-invoke reload-or-try-restart pmgpolicy.service
28 if systemctl
--quiet is-active pmgtunnel.service
; then
29 deb-systemd-invoke reload-or-try-restart pmgtunnel.service
37 test -e /proxmox_install_mode
&& exit 0;
44 if systemctl
--quiet is-active pmgpolicy.service
; then
45 deb-systemd-invoke reload-or-try-restart postgres.service
47 pmgconfig sync
--restart
51 pmgdb update
>/dev
/null
2>&1 &
53 update-mime-database
/usr
/share
/mime
56 abort-upgrade|abort-remove|abort-deconfigure
)
60 echo "postinst called with unknown argument \`$1'" >&2
65 # dh_installdeb will replace this with shell code automatically
66 # generated by other debhelper scripts.