Add option to override default ubuntu arhive (#3446)

This commit is contained in:
Igor Pečovnik
2022-01-30 23:10:51 +01:00
committed by GitHub
parent d885bfc97d
commit d4ee87852c

View File

@@ -590,6 +590,10 @@ fi
if [[ "${ARCH}" == "amd64" ]]; then if [[ "${ARCH}" == "amd64" ]]; then
UBUNTU_MIRROR='archive.ubuntu.com/ubuntu' # ports are only for non-amd64, of course. UBUNTU_MIRROR='archive.ubuntu.com/ubuntu' # ports are only for non-amd64, of course.
if [[ -n ${CUSTOM_UBUNTU_MIRROR} ]]; then # ubuntu redirector doesn't work well on amd64
UBUNTU_MIRROR="${CUSTOM_UBUNTU_MIRROR}"
fi
fi fi
# don't use mirrors that throws garbage on 404 # don't use mirrors that throws garbage on 404