3f4d1f1555
Closes: #9396 [via git-merge-pr]
16 lines
539 B
Bash
Executable File
16 lines
539 B
Bash
Executable File
#!/bin/sh
|
|
|
|
TRAVIS_PROTO=http
|
|
TRAVIS_MIRROR=alpha.us.repo.voidlinux.org
|
|
|
|
for _i in etc/repos-remote.conf etc/defaults.conf etc/repos-remote-x86_64.conf ; do
|
|
/bin/echo -e "\x1b[32mUpdating $_i...\x1b[0m"
|
|
# 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
|
|
done
|