#!/bin/sh

TRAVIS_PROTO=http
TRAVIS_MIRROR=auto.voidlinux.org

for _i in etc/repos-remote.conf etc/defaults.conf etc/repos-remote-x86_64.conf ; do
    printf '\x1b[32mUpdating %s...\x1b[0m\n' $_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 mirro
    sed -i "s:repo\.voidlinux\.eu:$TRAVIS_MIRROR:g" $_i
done

#!/bin/sh

TRAVIS_PROTO=http
TRAVIS_MIRROR=vm1.a-mci-us.m.voidlinux.org

for _i in etc/repos-remote.conf etc/defaults.conf etc/repos-remote-x86_64.conf ; do
    printf '\x1b[32mUpdating %s...\x1b[0m\n' $_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 mirro
    sed -i "s:repo\.voidlinux\.eu:$TRAVIS_MIRROR:g" $_i
done

Revert "common/travis: change mirror to automatic selection"
Revert "common/travis: change mirror to automatic selection"

This reverts commit c52ed4dbd08437cfeac04f53062e8cfd57b8d66a.
