diff --git a/pkg/cloudinit/scripts/configure-proxy.sh b/pkg/cloudinit/scripts/configure-proxy.sh index 5aa6c597..f473e2a8 100644 --- a/pkg/cloudinit/scripts/configure-proxy.sh +++ b/pkg/cloudinit/scripts/configure-proxy.sh @@ -3,12 +3,10 @@ # Assumptions: # - runs before install k8s -HTTP_PROXY_FILE="/capi/etc/http-proxy" -HTTPS_PROXY_FILE="/capi/etc/https-proxy" -NO_PROXY_FILE="/capi/etc/no-proxy" -ENVIRONMENT_FILE="/etc/environment" - - +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" if [ -f ${HTTP_PROXY_FILE} ]; then HTTP_PROXY=$(cat ${HTTP_PROXY_FILE}) @@ -16,14 +14,12 @@ if [ -f ${HTTP_PROXY_FILE} ]; then echo "HTTP_PROXY=${HTTP_PROXY}" >> "${ENVIRONMENT_FILE}" fi - if [ -f ${HTTPS_PROXY_FILE} ]; then HTTPS_PROXY=$(cat ${HTTPS_PROXY_FILE}) echo "https_proxy=${HTTPS_PROXY}" >> "${ENVIRONMENT_FILE}" echo "HTTPS_PROXY=${HTTPS_PROXY}" >> "${ENVIRONMENT_FILE}" fi - if [ -f ${NO_PROXY_FILE} ]; then NO_PROXY=$(cat ${NO_PROXY_FILE}) echo "no_proxy=${NO_PROXY}" >> "${ENVIRONMENT_FILE}"