summaryrefslogtreecommitdiff
path: root/tools/ci/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'tools/ci/scripts')
-rwxr-xr-xtools/ci/scripts/updaterepos.sh12
1 files changed, 12 insertions, 0 deletions
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