From: Emmanuel Kasper Date: Mon, 17 Jul 2017 12:50:26 +0000 (+0200) Subject: Fix #1446: allow pve-firewall package install twice in a row X-Git-Url: https://git.proxmox.com/?p=pve-firewall.git;a=commitdiff_plain;h=79ecedee413e06801ead7254948814500a63e663;hp=eedcb56462220b852ec68d7862c6fb9a0baa8fa8 Fix #1446: allow pve-firewall package install twice in a row 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. --- diff --git a/debian/postinst b/debian/postinst index e611f47..4077183 100644 --- a/debian/postinst +++ b/debian/postinst @@ -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 ;;