From d4ee87852c1b71b5c0dc91e0549371059d372ffb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Igor=20Pe=C4=8Dovnik?= Date: Sun, 30 Jan 2022 23:10:51 +0100 Subject: [PATCH] Add option to override default ubuntu arhive (#3446) --- lib/configuration.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/configuration.sh b/lib/configuration.sh index 73110c15f..46b92f37b 100644 --- a/lib/configuration.sh +++ b/lib/configuration.sh @@ -590,6 +590,10 @@ fi if [[ "${ARCH}" == "amd64" ]]; then 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 # don't use mirrors that throws garbage on 404