Update install.sh

This commit is contained in:
ITmail-dk
2024-10-16 14:12:43 +02:00
committed by GitHub
parent f18dbfdcac
commit 5b92fccf05

View File

@@ -70,23 +70,23 @@ fi
sudo sed -i '/^deb cdrom:/s/^/#/' /etc/apt/sources.list sudo sed -i '/^deb cdrom:/s/^/#/' /etc/apt/sources.list
# 2. Kontroller og tilføj Bookworm repositories, hvis de ikke allerede er der # 2. Kontroller og tilføj Bookworm repositories, hvis de ikke allerede er der
if ! grep -q "^deb http://deb.debian.org/debian/ bookworm main non-free-firmware" || grep -q "^deb https://deb.debian.org/debian/ bookworm main non-free-firmware" /etc/apt/sources.list; then #if ! grep -q "^deb http://deb.debian.org/debian/ bookworm main non-free-firmware" || grep -q "^deb https://deb.debian.org/debian/ bookworm main non-free-firmware" /etc/apt/sources.list; then
echo "Tilføjer Debian Bookworm repositories til /etc/apt/sources.list" # echo "Tilføjer Debian Bookworm repositories til /etc/apt/sources.list"
sudo tee -a /etc/apt/sources.list <<EOL # sudo tee -a /etc/apt/sources.list <<EOL
deb http://deb.debian.org/debian/ bookworm main non-free-firmware #deb http://deb.debian.org/debian/ bookworm main non-free-firmware
deb-src http://deb.debian.org/debian/ bookworm main non-free-firmware #deb-src http://deb.debian.org/debian/ bookworm main non-free-firmware
deb http://security.debian.org/debian-security bookworm-security main non-free-firmware #deb http://security.debian.org/debian-security bookworm-security main non-free-firmware
deb-src http://security.debian.org/debian-security bookworm-security main non-free-firmware #deb-src http://security.debian.org/debian-security bookworm-security main non-free-firmware
deb http://deb.debian.org/debian/ bookworm-updates main non-free-firmware #deb http://deb.debian.org/debian/ bookworm-updates main non-free-firmware
deb-src http://deb.debian.org/debian/ bookworm-updates main non-free-firmware #deb-src http://deb.debian.org/debian/ bookworm-updates main non-free-firmware
EOL #EOL
else #else
echo "Debian Bookworm repositories er allerede tilføjet." # echo "Debian Bookworm repositories er allerede tilføjet."
fi #fi
# APT Add "contrib non-free" to the sources list # APT Add "contrib non-free" to the sources list
if [ -f /etc/apt/sources.list.d/debian.sources ]; then if [ -f /etc/apt/sources.list.d/debian.sources ]; then