fix excessive quoting
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing

it breaks globbing
This commit is contained in:
Jérémy Lecour 2019-03-23 02:06:55 +01:00
parent 8f255fa392
commit 83379f6787

View file

@ -600,7 +600,8 @@ if is_debian; then
fi
if is_pack_web && (is_installed squid || is_installed squid3); then
host=$(hostname -i)
http_port=$(grep "http_port" "$squidconffile" | cut -f 2 -d " ")
# shellcheck disable=SC2086
http_port=$(grep "http_port" $squidconffile | cut -f 2 -d " ")
{ grep -qE "^[^#]*iptables -t nat -A OUTPUT -p tcp --dport 80 -m owner --uid-owner proxy -j ACCEPT" "$MINIFW_FILE" \
&& grep -qE "^[^#]*iptables -t nat -A OUTPUT -p tcp --dport 80 -d $host -j ACCEPT" "$MINIFW_FILE" \
&& grep -qE "^[^#]*iptables -t nat -A OUTPUT -p tcp --dport 80 -d 127.0.0.(1|0/8) -j ACCEPT" "$MINIFW_FILE" \