Skip to content
This repository has been archived by the owner on Dec 19, 2024. It is now read-only.

armbian-config mirror selection -- region selection code patch #215

Open
taras-filatov opened this issue Feb 8, 2024 · 0 comments
Open

Comments

@taras-filatov
Copy link

I found, that now the only proposed mirrir os "0 Automated".
I hope, region selection desined to like this....

--- old/debian-config-jobs.txt  2024-02-08 12:38:47.780000000 +0200
+++ new/debian-config-jobs.txt  2024-02-08 12:40:25.770000000 +0200
@@ -1670,7 +1670,7 @@
                mirrors=( "${url}" )
 
                # Mirrors for each region
-               for region in $(wget -qO- "${url}/regions" | jq -r '.[]' | sort | grep -v default); do
+               for region in $(wget -qO- "${url}/mirrors" | jq -r 'keys' | jq -r '.[]' | sort | grep -v default); do
                        LIST+=( "${#mirrors[@]}" "Region ${region}" )
                        mirrors+=( "${url}/region/${region}/" )
                done
(
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

1 participant