updaterepos.sh 490 B

1234567891011121314
  1. #!/usr/bin/env bash
  2. if [[ ${CI_RUNNER_TAGS} != *"docker"* ]]; then
  3. echo "Running from shell. Skipping update repos"
  4. exit 0
  5. fi
  6. export DATA=$(cat /etc/resolv.conf|grep "nameserver 1.10.100.101")
  7. echo "${DATA}"
  8. if [ "$DATA" != "" ]; then
  9. echo "Detected local runner"
  10. sed -i 's!http://httpredir.debian.org/debian!http://1.10.100.103/debian!' /etc/apt/sources.list || true
  11. sed -i 's!http://deb.debian.org/debian!http://1.10.100.103/debian!' /etc/apt/sources.list || true
  12. fi