Commit c9204b96 authored by Ralf Matthes's avatar Ralf Matthes
Browse files

added check for Debian 10/11

added sources.list for Debian 11
parent 72d9f83e
......@@ -13,15 +13,25 @@ elif [ $(cat /etc/debian_version) == $pat2 ]; then
VERSION=11
fi
echo "deb http://deb.debian.org/debian/ stable main contrib non-free" > /etc/sources.list
echo "deb-src http://deb.debian.org/debian/ stable main contrib non-free" >> /etc/sources.list
echo "" >> /etc/sources.list
echo "deb http://deb.debian.org/debian/ stable-updates main contrib non-free" >> /etc/sources.list
echo "deb-src http://deb.debian.org/debian/ stable-updates main contrib non-free" >> /etc/sources.list
echo "" >> /etc/sources.list
echo "deb http://deb.debian.org/debian-security stable/updates main" >> /etc/sources.list
echo "deb-src http://deb.debian.org/debian-security stable/updates main" >> /etc/sources.list
if [ $VERSION = "10" ]; then
echo "deb http://deb.debian.org/debian/ stable main contrib non-free" > /etc/sources.list
echo "deb-src http://deb.debian.org/debian/ stable main contrib non-free" >> /etc/sources.list
echo "" >> /etc/sources.list
echo "deb http://deb.debian.org/debian/ stable-updates main contrib non-free" >> /etc/sources.list
echo "deb-src http://deb.debian.org/debian/ stable-updates main contrib non-free" >> /etc/sources.list
echo "" >> /etc/sources.list
echo "deb http://deb.debian.org/debian-security stable/updates main" >> /etc/sources.list
echo "deb-src http://deb.debian.org/debian-security stable/updates main" >> /etc/sources.list
elif [ $VERSION = "11" ]; then
echo "deb http://ftp.uk.debian.org/debian/ bullseye main contrib non-free" > /etc/sources.list
echo "deb-src http://ftp.uk.debian.org/debian/ bullseye main contrib non-free" >> /etc/sources.list
echo "" >> /etc/sources.list
echo "deb http://ftp.uk.debian.org/debian/ bullseye-updates main contrib non-free" >> /etc/sources.list
echo "deb-src http://ftp.uk.debian.org/debian/ bullseye-updates main contrib non-free" >> /etc/sources.list
echo "" >> /etc/sources.list
echo "deb http://security.debian.org/ bullseye/updates main contrib non-free" >> /etc/sources.list
echo "deb-src http://security.debian.org/ bullseye/updates main contrib non-free" >> /etc/sources.list
fi
apt update
apt install -y git curl wget unzip
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment