mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-04 22:40:29 +03:00
more general regex for updating debian repo urls in buildserver provisions
This commit is contained in:
parent
aa86e56338
commit
a5ef08f57d
1 changed files with 1 additions and 1 deletions
|
|
@ -20,7 +20,7 @@ if echo $debian_mirror | grep '^https' 2>&1 > /dev/null; then
|
||||||
apt-get -y install apt-transport-https
|
apt-get -y install apt-transport-https
|
||||||
fi
|
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
|
if grep --quiet stretch /etc/apt/sources.list; then
|
||||||
echo "deb $debian_mirror stretch-backports main" > /etc/apt/sources.list.d/stretch-backports.list
|
echo "deb $debian_mirror stretch-backports main" > /etc/apt/sources.list.d/stretch-backports.list
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue