various: change default repo to repo-default.voidlinux.org
This commit is contained in:
parent
7861a044b3
commit
3a5377265a
21 changed files with 44 additions and 51 deletions
|
@ -7,7 +7,7 @@ TAR=tar
|
|||
command -v bsdtar >/dev/null && TAR=bsdtar
|
||||
ARCH=$(uname -m)-musl
|
||||
VERSION=0.59_5
|
||||
URL="https://alpha.de.repo.voidlinux.org/static/xbps-static-static-${VERSION}.${ARCH}.tar.xz"
|
||||
URL="https://repo-default.voidlinux.org/static/xbps-static-static-${VERSION}.${ARCH}.tar.xz"
|
||||
FILE=${URL##*/}
|
||||
|
||||
mkdir -p /tmp/bin
|
||||
|
|
|
@ -1,15 +1,8 @@
|
|||
#!/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"
|
||||
# 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\.voidlinux\.org:$TRAVIS_MIRROR:g" $_i
|
||||
done
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue