2017-09-18 02:19:30 +02:00
|
|
|
#!/bin/sh
|
|
|
|
|
2022-05-28 01:02:22 +02:00
|
|
|
TRAVIS_PROTO=http
|
2022-06-15 02:29:44 +02:00
|
|
|
TRAVIS_MIRROR=repo-ci.voidlinux.org
|
2017-09-18 02:19:30 +02:00
|
|
|
|
2020-01-01 11:45:45 +01:00
|
|
|
for _i in etc/xbps.d/repos-remote*.conf ; do
|
2019-03-06 02:47:54 +01:00
|
|
|
/bin/echo -e "\x1b[32mUpdating $_i...\x1b[0m"
|
2022-05-28 01:02:22 +02:00
|
|
|
# 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
|
|
|
|
|
|
|
|
# Now set the mirror
|
|
|
|
sed -i "s:alpha\.de\.repo\.voidlinux\.org:$TRAVIS_MIRROR:g" $_i
|
|
|
|
sed -i "s:repo-default\.voidlinux\.org:$TRAVIS_MIRROR:g" $_i
|
2017-09-18 02:19:30 +02:00
|
|
|
done
|