Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow egress-http-proxy.sh to be run as non-root #162

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions egress/http-proxy/egress-http-proxy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ if [[ "${EGRESS_HTTP_PROXY_MODE:-}" == "unit-test" ]]; then
exit 0
fi

CONF=/etc/squid/squid.conf
CONF=/tmp/squid.conf
rm -f ${CONF}

cat > ${CONF} <<EOF
Expand All @@ -81,6 +81,7 @@ cache deny all
access_log none all
debug_options ALL,0
shutdown_lifetime 0
pid_filename none
EOF

generate_acls >> ${CONF}
Expand All @@ -90,4 +91,4 @@ sed -e 's/^/ /' ${CONF}
echo ""
echo ""

exec squid -N
exec squid -N -f /tmp/squid.conf
yrro marked this conversation as resolved.
Show resolved Hide resolved