debian/postinst: use try-reload-or-restart for both services
This commit is contained in:
parent
c08fac4d69
commit
d79926795a
9
debian/postinst
vendored
9
debian/postinst
vendored
@ -8,19 +8,12 @@ case "$1" in
|
|||||||
configure)
|
configure)
|
||||||
# modeled after dh_systemd_start output
|
# modeled after dh_systemd_start output
|
||||||
systemctl --system daemon-reload >/dev/null || true
|
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
|
if [ -n "$2" ]; then
|
||||||
_dh_action=try-reload-or-restart
|
_dh_action=try-reload-or-restart
|
||||||
else
|
else
|
||||||
_dh_action=start
|
_dh_action=start
|
||||||
fi
|
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)
|
abort-upgrade|abort-remove|abort-deconfigure)
|
||||||
|
Loading…
Reference in New Issue
Block a user