Skip to content

Commit

Permalink
fix invalid escapes of variables creating /etc/apt/apt.conf.d/proxy.c…
Browse files Browse the repository at this point in the history
…onf (#2)
  • Loading branch information
DaRealFreak authored Oct 29, 2022
1 parent 3e7f505 commit 7423538
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions web-build/pre.Dockerfile.proxy-support
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ ENV NO_PROXY=${NO_PROXY:-127.0.0.1}
ENV http_proxy=${http_proxy:-${HTTP_PROXY}}

RUN if [ ! -z "${HTTP_PROXY:-}" ] || [ ! -z "${HTTPS_PROXY:-}" ]; then \
printf "Acquire {\nHTTP::proxy \"${HTTP_PROXY:-}\";\nHTTPS::proxy \"${HTTPS_PROXY:-}\";\n}\n" > /etc/apt/apt.conf.d/proxy.conf ; \
printf "Acquire {\nHTTP::proxy \"%s\";\nHTTPS::proxy \"%s\";\n}\n" "${HTTP_PROXY:-}" "${HTTPS_PROXY:-}" > /etc/apt/apt.conf.d/proxy.conf ; \
fi

# Debugging statements
RUN echo "Using HTTP_PROXY='${HTTP_PROXY:-}' HTTPS_PROXY='${HTTPS_PROXY:-}' NO_PROXY='${NO_PROXY:-}'"
RUN printf "Using HTTP_PROXY='%s' HTTPS_PROXY='%s' NO_PROXY='%s'" "${HTTP_PROXY:-}" "${HTTPS_PROXY:-}" "${NO_PROXY:-}"
RUN if [ -f /etc/apt/apt.conf.d/proxy.conf ]; then cat /etc/apt/apt.conf.d/proxy.conf ; fi

0 comments on commit 7423538

Please sign in to comment.