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
24 # do nothing in test mode here, but setup services below
33 if systemctl
--quiet is-active pmgpolicy.service
; then
34 deb-systemd-invoke reload-or-try-restart postgres.service
36 pmgconfig sync
--restart
39 pmgdb update
>/dev
/null
2>&1 &
41 update-mime-database
/usr
/share
/mime
45 abort-upgrade|abort-remove|abort-deconfigure
)
49 echo "postinst called with unknown argument \`$1'" >&2
54 # dh_installdeb will replace this with shell code automatically
55 # generated by other debhelper scripts.