Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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 join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant