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

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

Description

@taras-filatov

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
(

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions