Commit 36699bbd authored by Roberto Bonafiglia's avatar Roberto Bonafiglia Committed by Roberto Bonafiglia

Changed command -v redirection for iptables bin check

parent 944f811d
......@@ -967,11 +967,11 @@ service_enable_and_start() {
return
fi
if command -v iptables-save &> /dev/null && command -v iptables-restore &> /dev/null
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
fi
if command -v ip6tables-save &> /dev/null && command -v ip6tables-restore &> /dev/null
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
fi
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment