X-Git-Url: https://git.proxmox.com/?p=pve-firewall.git;a=blobdiff_plain;f=debian%2Fpostinst;h=8cdb4681240596eaf0a7eea60194085fc56704b4;hp=e41354279fc76aa1ba999c7d3ec1ab1de6134cd6;hb=HEAD;hpb=76e94b55580f2cc6bad8dd126f7ace6b63539a4e diff --git a/debian/postinst b/debian/postinst index e413542..8cdb468 100644 --- a/debian/postinst +++ b/debian/postinst @@ -2,13 +2,18 @@ set -e +#DEBHELPER# + case "$1" in configure) - ;; - - triggered) - invoke-rc.d pve-firewall restart - exit 0 + # modeled after dh_systemd_start output + systemctl --system daemon-reload >/dev/null || true + if [ -n "$2" ]; then + _dh_action=try-reload-or-restart + else + _dh_action=start + fi + deb-systemd-invoke $_dh_action pve-firewall.service >/dev/null || true ;; abort-upgrade|abort-remove|abort-deconfigure) @@ -20,6 +25,4 @@ case "$1" in ;; esac -#DEBHELPER# - -exit 0 \ No newline at end of file +exit 0