Add debian bookworm sources

This commit is contained in:
thorstenspille 2023-06-24 18:42:45 +02:00
parent a7bcde4178
commit a33ad43a50

View File

@ -24,27 +24,39 @@ EOF
locale-gen $LXC_LOCALE
# Generate sources
if [ "$LXC_TEMPLATE_VERSION" == "debian-11-standard" ] ; then
if [ "$LXC_TEMPLATE_VERSION" == "debian-10-standard" ] ; then
cat << EOF > /etc/apt/sources.list
deb http://debian.inf.tu-dresden.de/debian bullseye main contrib
deb http://ftp.halifax.rwth-aachen.de/debian/ buster main contrib
deb http://debian.inf.tu-dresden.de/debian bullseye-updates main contrib
deb http://ftp.halifax.rwth-aachen.de/debian/ buster-updates main contrib
# security updates
deb http://debian.inf.tu-dresden.de/debian-security bullseye-security main contrib
deb http://security.debian.org/debian-security buster/updates main contrib
EOF
elif [ "$LXC_TEMPLATE_VERSION" == "debian-10-standard" ] ; then
elif [ "$LXC_TEMPLATE_VERSION" == "debian-11-standard" ] ; then
cat << EOF > /etc/apt/sources.list
deb http://debian.inf.tu-dresden.de/debian buster main contrib
deb http://ftp.halifax.rwth-aachen.de/debian/ bullseye main contrib
deb http://debian.inf.tu-dresden.de/debian buster-updates main contrib
deb http://ftp.halifax.rwth-aachen.de/debian/ bullseye-updates main contrib
# security updates
deb http://debian.inf.tu-dresden.de/debian-security buster/updates main contrib
deb http://security.debian.org/debian-security bullseye-security main contrib
EOF
elif [ "$LXC_TEMPLATE_VERSION" == "debian-12-standard" ] ; then
cat << EOF > /etc/apt/sources.list
deb http://ftp.halifax.rwth-aachen.de/debian/ bookworm main contrib
deb http://ftp.halifax.rwth-aachen.de/debian/ bookworm-updates main contrib
# security updates
deb http://security.debian.org/debian-security bookworm-security main contrib
EOF
else echo "LXC Debian Version false. Please check configuration files!" ; exit
fi