common/travis: use https for repo-ci.voidlinux.org

This reverts commit 2233ca2edf.

We now have a cert on repo-ci and http to https redirects so that
each request results in a redirect.
This commit is contained in:
Duncaen 2022-08-05 22:51:31 +02:00
parent 1a6c786ed0
commit d331d585fd
No known key found for this signature in database
GPG key ID: 335C1D17EC3D6E35

View file

@ -1,16 +1,8 @@
#!/bin/sh
TRAVIS_PROTO=http
TRAVIS_MIRROR=repo-ci.voidlinux.org
for _i in etc/xbps.d/repos-remote*.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
sed -i "s:repo-default\.voidlinux\.org:$TRAVIS_MIRROR:g" $_i
sed -i "s:repo\.voidlinux\.org:$TRAVIS_MIRROR:g" $_i
done