mirror of
https://github.com/k3s-io/k3s.git
synced 2024-06-07 19:41:36 +00:00
Changed command -v redirection for iptables bin check
Signed-off-by: Roberto Bonafiglia <roberto.bonafiglia@suse.com>
This commit is contained in:
parent
944f811dc5
commit
36699bbd60
@ -967,11 +967,11 @@ service_enable_and_start() {
|
|||||||
return
|
return
|
||||||
fi
|
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
|
then
|
||||||
$SUDO iptables-save | grep -v KUBE- | grep -v CNI- | grep -iv flannel | $SUDO iptables-restore
|
$SUDO iptables-save | grep -v KUBE- | grep -v CNI- | grep -iv flannel | $SUDO iptables-restore
|
||||||
fi
|
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
|
then
|
||||||
$SUDO ip6tables-save | grep -v KUBE- | grep -v CNI- | grep -iv flannel | $SUDO ip6tables-restore
|
$SUDO ip6tables-save | grep -v KUBE- | grep -v CNI- | grep -iv flannel | $SUDO ip6tables-restore
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user