This commit is contained in:
Marcus 2023-06-13 01:20:08 +02:00
parent 451bc4b05a
commit e7ea857f3f

View file

@ -64,7 +64,19 @@ message "check sources.list"
if ! grep "contrib" /etc/apt/sources.list > /dev/null && grep "non-free" /etc/apt/sources.list > /dev/null if ! grep "contrib" /etc/apt/sources.list > /dev/null && grep "non-free" /etc/apt/sources.list > /dev/null
then then
message warn "'contrib' and 'non-free' not in your sources.ist, i will deploy my own" message warn "'contrib' and 'non-free' not in your sources.ist, i will deploy my own"
echo "" | sudo tee /etc/apt/sources.list echo "deb http://deb.debian.org/debian/ bookworm main contrib non-free non-free-firmware
deb-src http://deb.debian.org/debian/ bookworm main contrib non-free non-free-firmware
deb http://security.debian.org/debian-security bookworm-security main contrib non-free non-free-firmware
deb-src http://security.debian.org/debian-security bookworm-security main contrib non-free non-free-firmware
# bookworm-updates, to get updates before a point release is made;
# see https://www.debian.org/doc/manuals/debian-reference/ch02.en.html#_updates_and_backports
deb http://deb.debian.org/debian/ bookworm-updates main contrib non-free non-free-firmware
deb-src http://deb.debian.org/debian/ bookworm-updates main contrib non-free non-free-firmware
" | sudo tee /etc/apt/sources.list
message "apt update"
sudo apt update
fi fi
# iterate through $packages # iterate through $packages