]> piware.de Git - bin.git/commitdiff
build-debian-toolbox: Avoid deb.debian.org
authorMartin Pitt <martin@piware.de>
Sun, 26 Apr 2020 16:30:48 +0000 (18:30 +0200)
committerMartin Pitt <martin@piware.de>
Sun, 26 Apr 2020 16:30:48 +0000 (18:30 +0200)
It often gets the wrong mirror with my company VPN.

build-debian-toolbox

index 821b52b91411e29567eeab944a9fb649b695b8cc..ce0318324809fe4cd3fc4e6a1dbb62d3b8490403 100755 (executable)
@@ -18,6 +18,9 @@ fi
 # go-faster apt/dpkg
 echo force-unsafe-io > /etc/dpkg/dpkg.cfg.d/unsafe-io
 
+# location based redirector gets it wrong with company VPN
+sed -i "s/deb.debian.org/ftp.de.debian.org/" /etc/apt/sources.list
+
 apt-get update
 apt-get install -y libnss-myhostname sudo eatmydata libcap2-bin