From a33ad43a5054677b6a12a8d570f4cfb72c080991 Mon Sep 17 00:00:00 2001 From: thorstenspille Date: Sat, 24 Jun 2023 18:42:45 +0200 Subject: [PATCH] Add debian bookworm sources --- src/lxc-base.sh | 28 ++++++++++++++++++++-------- 1 file changed, 20 insertions(+), 8 deletions(-) diff --git a/src/lxc-base.sh b/src/lxc-base.sh index d26954f..67140f8 100644 --- a/src/lxc-base.sh +++ b/src/lxc-base.sh @@ -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