X-Git-Url: https://git.proxmox.com/?p=pve-firewall.git;a=blobdiff_plain;f=debian%2Fpostinst;h=8cdb4681240596eaf0a7eea60194085fc56704b4;hp=3c6963fed945d2820eb2805cbef7aab6869a204e;hb=HEAD;hpb=985d7ae03b983883ae0f94b7566d5a202b5e8b73 diff --git a/debian/postinst b/debian/postinst index 3c6963f..8cdb468 100644 --- a/debian/postinst +++ b/debian/postinst @@ -2,8 +2,18 @@ set -e +#DEBHELPER# + case "$1" in configure) + # 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) @@ -15,6 +25,4 @@ case "$1" in ;; esac -#DEBHELPER# - exit 0