armbian / config

Armbian Linux configuration utility
GNU General Public License v2.0
467 stars 168 forks source link

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

Open taras-filatov opened 9 months ago

taras-filatov commented 9 months ago

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
(