2017-09-18 00:19:30 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
2018-09-02 18:53:41 +00:00
|
|
|
TRAVIS_PROTO=http
|
|
|
|
TRAVIS_MIRROR=alpha.us.repo.voidlinux.org
|
2017-09-18 00:19:30 +00:00
|
|
|
|
|
|
|
for _i in etc/repos-remote.conf etc/defaults.conf etc/repos-remote-x86_64.conf ; do
|
|
|
|
printf '\x1b[32mUpdating %s...\x1b[0m\n' $_i
|
|
|
|
# First fix the proto, ideally we'd serve everything with HTTPS,
|
|
|
|
# but key management and rotation is a pain, and things are signed
|
|
|
|
# so we can afford to be a little lazy at times.
|
|
|
|
sed -i "s:https:$TRAVIS_PROTO:g" $_i
|
|
|
|
|
2018-09-02 18:36:22 +00:00
|
|
|
# Now set the mirror
|
2018-09-02 18:53:41 +00:00
|
|
|
sed -i "s:alpha\.de\.repo\.voidlinux\.org:$TRAVIS_MIRROR:g" $_i
|
2017-09-18 00:19:30 +00:00
|
|
|
done
|