Skip to content

Commit dd4e119

Browse files
fix: use the correct proxy file locations (#131)
The configure-proxy.sh script adds a superfluous "/tmp/" prefix to the proxy file paths: ``` HTTP_PROXY_FILE="/tmp/capi/etc/http-proxy" HTTPS_PROXY_FILE="/tmp/capi/etc/https-proxy" NO_PROXY_FILE="/tmp/capi/etc/no-proxy" ENVIRONMENT_FILE="/tmp/etc/environment" ``` For this reason, the proxy settings are not applied correctly. We'll fix the issue by simply removing the "/tmp/" prefix. Fixes: #125
1 parent 78095be commit dd4e119

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

pkg/cloudinit/scripts/configure-proxy.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
# Assumptions:
44
# - runs before install k8s
55

6-
HTTP_PROXY_FILE="/tmp/capi/etc/http-proxy"
7-
HTTPS_PROXY_FILE="/tmp/capi/etc/https-proxy"
8-
NO_PROXY_FILE="/tmp/capi/etc/no-proxy"
9-
ENVIRONMENT_FILE="/tmp/etc/environment"
6+
HTTP_PROXY_FILE="/capi/etc/http-proxy"
7+
HTTPS_PROXY_FILE="/capi/etc/https-proxy"
8+
NO_PROXY_FILE="/capi/etc/no-proxy"
9+
ENVIRONMENT_FILE="/etc/environment"
1010

1111
if [ -f ${HTTP_PROXY_FILE} ]; then
1212
HTTP_PROXY=$(cat ${HTTP_PROXY_FILE})

0 commit comments

Comments
 (0)