set_mirror.sh (500B)
1#!/bin/sh 2 3TRAVIS_PROTO=http 4TRAVIS_MIRROR=alpha.us.repo.voidlinux.org 5 6for _i in etc/xbps.d/repos-remote*.conf ; do 7 /bin/echo -e "\x1b[32mUpdating $_i...\x1b[0m" 8 # First fix the proto, ideally we'd serve everything with HTTPS, 9 # but key management and rotation is a pain, and things are signed 10 # so we can afford to be a little lazy at times. 11 sed -i "s:https:$TRAVIS_PROTO:g" $_i 12 13 # Now set the mirror 14 sed -i "s:alpha\.de\.repo\.voidlinux\.org:$TRAVIS_MIRROR:g" $_i 15done