Skip to content
Snippets Groups Projects
Commit 2f5524fd authored by Nils Schneider's avatar Nils Schneider Committed by Daniel Ehlers
Browse files

gluon-autoupdater: Randomize mirror order

This way we have a kind of load balancing among the mirrors.
parent 2062d1fc
No related branches found
No related tags found
No related merge requests found
......@@ -20,7 +20,9 @@ if test "a$1" != "a-f"; then
fi
BRANCH_NAME=$(uci get autoupdater.${BRANCH}.name)
MIRRORS=$(uci get autoupdater.${BRANCH}.mirror)
MIRRORS=$(for mirror in $(uci get autoupdater.${BRANCH}.mirror); do \
hexdump -n1 -e '/1 "%d '"$mirror"'\n"' /dev/urandom; \
done | sort -n | cut -d' ' -f2)
PUBKEYS=$(uci get autoupdater.${BRANCH}.pubkey)
GOOD_SIGNATURES=$(uci get autoupdater.${BRANCH}.good_signatures)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment