debian/postinst: use try-reload-or-restart for both services

This commit is contained in:
Dietmar Maurer 2020-06-22 10:44:26 +02:00
parent c08fac4d69
commit d79926795a

9
debian/postinst vendored
View File

@ -8,19 +8,12 @@ case "$1" in
configure)
# modeled after dh_systemd_start output
systemctl --system daemon-reload >/dev/null || true
if [ -n "$2" ]; then
_dh_action=try-restart
else
_dh_action=start
fi
deb-systemd-invoke $_dh_action proxmox-backup.service >/dev/null || true
if [ -n "$2" ]; then
_dh_action=try-reload-or-restart
else
_dh_action=start
fi
deb-systemd-invoke $_dh_action proxmox-backup-proxy.service >/dev/null || true
deb-systemd-invoke $_dh_action proxmox-backup.service proxmox-backup-proxy.service >/dev/null || true
;;
abort-upgrade|abort-remove|abort-deconfigure)