summaryrefslogtreecommitdiff
path: root/setup-apkrepos.in
diff options
context:
space:
mode:
authorDaniel Lublin <daniel@lublin.se>2019-07-16 17:58:34 +0200
committerNatanael Copa <ncopa@alpinelinux.org>2020-05-28 15:21:17 +0000
commitdcb4e48f1f237b09bb30d210f4a58e69587b19de (patch)
treebc06104aabab116e0b98bb27669ff68a1482d29c /setup-apkrepos.in
parent1bc9689361b4f1e586bd026d62f1b778f431cad1 (diff)
downloadalpine-conf-dcb4e48f1f237b09bb30d210f4a58e69587b19de.zip
setup-apkrepos: try fetching the mirror list repeatedly while prompting
fixes https://gitlab.alpinelinux.org/alpine/alpine-conf/issues/10446
Diffstat (limited to 'setup-apkrepos.in')
-rw-r--r--setup-apkrepos.in4
1 files changed, 4 insertions, 0 deletions
diff --git a/setup-apkrepos.in b/setup-apkrepos.in
index 1b05978..e73e627 100644
--- a/setup-apkrepos.in
+++ b/setup-apkrepos.in
@@ -202,6 +202,10 @@ if $add_fastest; then
fi
while ! $changed; do
+ if [ -z "$MIRRORS" ]; then
+ MIRRORS=$(wget -qO- $MIRRORS_URL)
+ fi
+
show_mirror_list
prompt_setup_method $default_answer