mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2025-05-31 23:00:48 +00:00
Fix proxies assignment in Makefile
This commit is contained in:
parent
6de51543a5
commit
a20084d906
12
Makefile
12
Makefile
@ -85,17 +85,17 @@ DOCKERD_PROXY=tools/dind/config/services/docker.service.d/proxy.conf
|
|||||||
${DOCKERD_PROXY}:
|
${DOCKERD_PROXY}:
|
||||||
rm -f ${DOCKERD_PROXY}
|
rm -f ${DOCKERD_PROXY}
|
||||||
if [ -n "${rt_http_proxy}" ]; then \
|
if [ -n "${rt_http_proxy}" ]; then \
|
||||||
proxies=("\"HTTP_PROXY=${rt_http_proxy}\""); \
|
proxies="\"HTTP_PROXY=${rt_http_proxy}\""; \
|
||||||
proxies=($${proxies[*]} "\"http_proxy=${rt_http_proxy}\""); \
|
proxies="$${proxies[*]} \"http_proxy=${rt_http_proxy}\""; \
|
||||||
fi; \
|
fi; \
|
||||||
if [ -n "${rt_https_proxy}" ]; then \
|
if [ -n "${rt_https_proxy}" ]; then \
|
||||||
proxies=($${proxies[*]} "\"HTTPS_PROXY=${rt_https_proxy}\""); \
|
proxies="$${proxies[*]} \"HTTPS_PROXY=${rt_https_proxy}\""; \
|
||||||
proxies=($${proxies[*]} "\"https_proxy=${rt_https_proxy}\""); \
|
proxies="$${proxies[*]} \"https_proxy=${rt_https_proxy}\""; \
|
||||||
fi; \
|
fi; \
|
||||||
if [ -n "${rt_no_proxy}" ]; then \
|
if [ -n "${rt_no_proxy}" ]; then \
|
||||||
proxies=($${proxies[*]} "\"no_proxy=${rt_no_proxy}\""); \
|
proxies="$${proxies[*]} \"no_proxy=${rt_no_proxy}\""; \
|
||||||
fi; \
|
fi; \
|
||||||
if [ -n "$${proxies[*]}" ]; then \
|
if [ -n "${proxies}" ]; then \
|
||||||
echo "[Service]" > ${DOCKERD_PROXY}; \
|
echo "[Service]" > ${DOCKERD_PROXY}; \
|
||||||
echo "Environment=$${proxies[*]}" >> ${DOCKERD_PROXY}; \
|
echo "Environment=$${proxies[*]}" >> ${DOCKERD_PROXY}; \
|
||||||
else \
|
else \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user