1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-11-19 21:30:10 +01:00

more general regex for updating debian repo urls in buildserver provisions

This commit is contained in:
Michael Pöhn 2018-06-26 11:25:07 +02:00 committed by Michael Pöhn
parent aa86e56338
commit a5ef08f57d

View File

@ -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