upgrade_dist: fixed proxy parameters detection

This commit is contained in:
levasseur
2021-12-06 17:38:18 +01:00
parent 056a6142bd
commit 2904cd5053

View File

@@ -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