1
0
Fork 0

fix: do not use custom sources.list on debian 12 bookworm

timestamps
dump_stack() 2023-05-24 12:38:54 +00:00
parent 93f66b08f4
commit a4b20299cd
Signed by: dump_stack
GPG Key ID: BE44DA8C062D87DC
1 changed files with 3 additions and 2 deletions

View File

@ -42,9 +42,10 @@ for version in 7 8 9 10 11 12; do
# TODO: grep -Po 'http://snapshot[^ ]*' /etc/apt/sources.list | head -n1
if [[ $version -eq 12 ]]; then
repository=http://deb.debian.org/debian
repository=http://deb.debian.org/debian
sed -i '/sources.list/d' 12/Dockerfile
else
repository=$(wget -q -O - https://cdimage.debian.org/mirror/cdimage/archive/${last_version}/amd64/jigdo-bd/debian-${last_version}-amd64-BD-1.jigdo | gunzip | awk -F= '/snapshot.debian.org/ {print $2}' | cut -d ' ' -f 1)
repository=$(wget -q -O - https://cdimage.debian.org/mirror/cdimage/archive/${last_version}/amd64/jigdo-bd/debian-${last_version}-amd64-BD-1.jigdo | gunzip | awk -F= '/snapshot.debian.org/ {print $2}' | cut -d ' ' -f 1)
fi
sed -i "s;_REPOSITORY_;${repository};" $version/Dockerfile