From 73de3fca3b7bf3b63a9b75c1204b75d6bbde8c1f Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 25 Jan 2017 18:05:20 +0300 Subject: Add updaterepos ci script. --- tools/ci/scripts/updaterepos.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100755 tools/ci/scripts/updaterepos.sh (limited to 'tools') diff --git a/tools/ci/scripts/updaterepos.sh b/tools/ci/scripts/updaterepos.sh new file mode 100755 index 000000000..d589d28a0 --- /dev/null +++ b/tools/ci/scripts/updaterepos.sh @@ -0,0 +1,12 @@ +#!/bin/bash + +if [[ ${CI_RUNNER_TAGS} != *"docker"* ]]; then + echo "Running from shell. Skipping update repos" + exit 0 +fi +export DATA=$(cat /etc/resolv.conf|grep "nameserver 1.10.100.101") +echo "${DATA}" +if [ "$DATA" != "" ]; then + echo "Detected local runner" + sed -i 's!http://httpredir.debian.org/debian!http://1.10.100.103/debian!' /etc/apt/sources.list +fi -- cgit v1.2.3-70-g09d2