From d79926795a1ec748aaecc3a4bed6ba32d9a94ecd Mon Sep 17 00:00:00 2001 From: Dietmar Maurer Date: Mon, 22 Jun 2020 10:44:26 +0200 Subject: [PATCH] debian/postinst: use try-reload-or-restart for both services --- debian/postinst | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/debian/postinst b/debian/postinst index ee31737c..b416b7e8 100644 --- a/debian/postinst +++ b/debian/postinst @@ -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)