Following commit 67e3e322a881 ("Revert "pve-firewall.service:
update-alternative ip-/eb- tables to legacy versions""), modify the
postinst script to explicitly switch these alternatives back to auto
mode during package configuration. This ensures a seamless transition
during upgrades.

Signed-off-by: Ethan Zuo <[email protected]>
---
 debian/postinst | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/debian/postinst b/debian/postinst
index 8cdb468..8d6a14f 100644
--- a/debian/postinst
+++ b/debian/postinst
@@ -6,6 +6,10 @@ set -e
 
 case "$1" in
     configure)
+       update-alternatives --auto ebtables || true
+       update-alternatives --auto iptables || true
+       update-alternatives --auto ip6tables || true
+
        # modeled after dh_systemd_start output
        systemctl --system daemon-reload >/dev/null || true
        if [ -n "$2" ]; then
-- 
2.51.0



Reply via email to