From a5ef08f57d64859c4e24442800b1e8fd1607fdf8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20P=C3=B6hn?= Date: Tue, 26 Jun 2018 11:25:07 +0200 Subject: [PATCH] more general regex for updating debian repo urls in buildserver provisions --- buildserver/provision-apt-get-install | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/buildserver/provision-apt-get-install b/buildserver/provision-apt-get-install index dc10206c..19cc91eb 100644 --- a/buildserver/provision-apt-get-install +++ b/buildserver/provision-apt-get-install @@ -20,7 +20,7 @@ if echo $debian_mirror | grep '^https' 2>&1 > /dev/null; then apt-get -y install apt-transport-https fi -sed -i "s,http://ftp.uk.debian.org/debian/,${debian_mirror},g" /etc/apt/sources.list +sed -Ei "s,^deb [a-z]+://\S+,deb ${debian_mirror}," /etc/apt/sources.list if grep --quiet stretch /etc/apt/sources.list; then echo "deb $debian_mirror stretch-backports main" > /etc/apt/sources.list.d/stretch-backports.list