Commit 701e7e45 authored by Mikhail Vorobyov's avatar Mikhail Vorobyov Committed by Brad Davidson

Fix iptables check when sbin isn't in user PATH

parent fa118505
......@@ -1057,7 +1057,7 @@ openrc_start() {
}
has_working_xtables() {
if command -v "$1-save" 1> /dev/null && command -v "$1-restore" 1> /dev/null; then
if $SUDO sh -c "command -v \"$1-save\"" 1> /dev/null && $SUDO sh -c "command -v \"$1-restore\"" 1> /dev/null; then
if $SUDO $1-save 2>/dev/null | grep -q '^-A CNI-HOSTPORT-MASQ -j MASQUERADE$'; then
warn "Host $1-save/$1-restore tools are incompatible with existing rules"
else
......
91e1015131eb5dad5967e7f1ef735222863edf9c2bf8a2eee1c96687c756e52e install.sh
5902e8be9a2a6ca1bcab85de59a6917c766b08feef4ff32648d38c8efe6537c0 install.sh
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