9 test -e /proxmox_install_mode
&& exit 0;
11 # Note: reload-or-try-restart fails if service is not active
12 for service
in pmgdaemon pmgproxy pmg-smtp-filter pmgpolicy pmgtunnel pmgmirror
; do
13 if systemctl
--quiet is-active
$service.service
; then
14 deb-systemd-invoke reload-or-try-restart
$service.service
23 if test ! -e /proxmox_install_mode
; then
31 if systemctl
--quiet is-active pmgpolicy.service
; then
32 deb-systemd-invoke reload-or-try-restart postgresql.service
34 pmgconfig sync
--restart
37 pmgdb update
>/dev
/null
2>&1 &
39 update-mime-database
/usr
/share
/mime
46 abort-upgrade|abort-remove|abort-deconfigure
)
50 echo "postinst called with unknown argument \`$1'" >&2
55 # dh_installdeb will replace this with shell code automatically
56 # generated by other debhelper scripts.
60 if test ! -e /proxmox_install_mode
; then
61 for service
in pmgdaemon pmgproxy
; do
63 # Note: reload-or-try-restart fails if service is not active
64 if systemctl
--quiet is-active
$service.service
; then
65 deb-systemd-invoke reload-or-try-restart
$service.service
68 deb-systemd-invoke start
$service.service