From 2904cd5053221149862fc43ff167dd37d13746a4 Mon Sep 17 00:00:00 2001 From: levasseur Date: Mon, 6 Dec 2021 17:38:18 +0100 Subject: [PATCH] upgrade_dist: fixed proxy parameters detection --- modules/upgrade_dist.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/upgrade_dist.sh b/modules/upgrade_dist.sh index 3438b69..2f8fcba 100644 --- a/modules/upgrade_dist.sh +++ b/modules/upgrade_dist.sh @@ -44,7 +44,7 @@ upgrade_dist() fi echo "# Generated automatically on $(stdtime) by $0" > $proxyfile echo "Acquire::http::Proxy \"http://${PROXY_APT}:${PROXY_APT_PORT}\";" >> $proxyfile - elif [[ -n $http_proxy ]]; then + elif [[ -n $PROXY_SRV ]]; then echo "# Generated automatically on $(stdtime) by $0" > $proxyfile echo "Acquire::http::Proxy \"http://${PROXY_SRV}:${PROXY_SRV_PORT}\";" >> $proxyfile else