From 91c5e0d75a009115cb33f281dc4fc1a15b80da69 Mon Sep 17 00:00:00 2001 From: Roberto Bonafiglia Date: Mon, 22 May 2023 18:35:32 +0200 Subject: [PATCH] Fix iptables rules clean during upgrade Signed-off-by: Roberto Bonafiglia --- install.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/install.sh b/install.sh index 65e1873e3179..044f9641ece3 100755 --- a/install.sh +++ b/install.sh @@ -969,11 +969,11 @@ service_enable_and_start() { if command -v iptables-save 1> /dev/null && command -v iptables-restore 1> /dev/null then - $SUDO iptables-save | grep -v KUBE- | grep -v CNI- | grep -iv flannel | $SUDO iptables-restore + $SUDO iptables-save | grep -v KUBE- | grep -iv flannel | $SUDO iptables-restore fi if command -v ip6tables-save 1> /dev/null && command -v ip6tables-restore 1> /dev/null then - $SUDO ip6tables-save | grep -v KUBE- | grep -v CNI- | grep -iv flannel | $SUDO ip6tables-restore + $SUDO ip6tables-save | grep -v KUBE- | grep -iv flannel | $SUDO ip6tables-restore fi [ "${HAS_SYSTEMD}" = true ] && systemd_start