diff --git a/egress/http-proxy/egress-http-proxy.sh b/egress/http-proxy/egress-http-proxy.sh index fa4b83221..06c276682 100755 --- a/egress/http-proxy/egress-http-proxy.sh +++ b/egress/http-proxy/egress-http-proxy.sh @@ -72,22 +72,23 @@ if [[ "${EGRESS_HTTP_PROXY_MODE:-}" == "unit-test" ]]; then exit 0 fi -CONF=/etc/squid/squid.conf -rm -f ${CONF} +CONF=/tmp/squid.conf +rm -f "${CONF}" -cat > ${CONF} < "${CONF}" <> ${CONF} +generate_acls >> "${CONF}" echo "Running squid with config:" -sed -e 's/^/ /' ${CONF} +sed -e 's/^/ /' "${CONF}" echo "" echo "" -exec squid -N +exec squid -N -f "${CONF}"