Fix permissions in iptables script.
parent
23b5608727
commit
b0e6348e6f
|
|
@ -77,7 +77,7 @@ if [ $? -eq 0 ]; then
|
||||||
else
|
else
|
||||||
info "not found."
|
info "not found."
|
||||||
echo -n "Inserting iptables rule to PREROUTING chain ... "
|
echo -n "Inserting iptables rule to PREROUTING chain ... "
|
||||||
$(iptables -I ${RULE[@]})
|
sudo iptables -I ${RULE[@]} 2>/dev/null
|
||||||
fi
|
fi
|
||||||
EXIT_STATUS=$?
|
EXIT_STATUS=$?
|
||||||
if [ $EXIT_STATUS -ne 0 ]; then
|
if [ $EXIT_STATUS -ne 0 ]; then
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue