upgrade_dist: fixed proxy parameters detection
This commit is contained in:
@@ -44,7 +44,7 @@ upgrade_dist()
|
|||||||
fi
|
fi
|
||||||
echo "# Generated automatically on $(stdtime) by $0" > $proxyfile
|
echo "# Generated automatically on $(stdtime) by $0" > $proxyfile
|
||||||
echo "Acquire::http::Proxy \"http://${PROXY_APT}:${PROXY_APT_PORT}\";" >> $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 "# Generated automatically on $(stdtime) by $0" > $proxyfile
|
||||||
echo "Acquire::http::Proxy \"http://${PROXY_SRV}:${PROXY_SRV_PORT}\";" >> $proxyfile
|
echo "Acquire::http::Proxy \"http://${PROXY_SRV}:${PROXY_SRV_PORT}\";" >> $proxyfile
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user