From a070b674127ab18f165cfd75fb200093c2601ec7 Mon Sep 17 00:00:00 2001 From: Emmanuel Kasper Date: Mon, 17 Jul 2017 14:50:26 +0200 Subject: [PATCH] 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. --- debian/postinst | 2 ++ 1 file changed, 2 insertions(+) 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 ;; -- 2.39.2