Skip to content

Commit

Permalink
commont/travis: Fix CI mirror
Browse files Browse the repository at this point in the history
  • Loading branch information
the-maldridge committed May 27, 2022
1 parent 3a53772 commit 2233ca2
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion common/travis/set_mirror.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,16 @@
#!/bin/sh

TRAVIS_PROTO=http
TRAVIS_MIRROR=repo-us.voidlinux.org

for _i in etc/xbps.d/repos-remote*.conf ; do
/bin/echo -e "\x1b[32mUpdating $_i...\x1b[0m"
sed -i "s:repo\.voidlinux\.org:$TRAVIS_MIRROR:g" $_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

# 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
done

0 comments on commit 2233ca2

Please sign in to comment.