]> git.proxmox.com Git - pve-firewall.git/commitdiff
Fix #1446: allow pve-firewall package install twice in a row stable-4
authorEmmanuel Kasper <e.kasper@proxmox.com>
Mon, 17 Jul 2017 12:50:26 +0000 (14:50 +0200)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Wed, 19 Jul 2017 08:06:58 +0000 (10:06 +0200)
On packages removal (!= purge) systemd units are masked.
The postinst script has then to reenable this units at the
beginning of the 'configure' step.

Our other packages are doing this manually, or automatically
when the dh_systemd_enable helpers generated a postinst,
but this was missing here.

debian/postinst

index e611f47de28c1543441475f6b833403085e1dd3b..40771833bab8ad1898c16c47c96af0ecfd9d99e2 100644 (file)
@@ -4,6 +4,8 @@ set -e
 
 case "$1" in
     configure)
+       # Remove masks created by dh_systemd_enable on package removal.
+       deb-systemd-helper unmask pve-firewall.service >/dev/null || true
        systemctl reload-or-restart pve-firewall
     ;;