From 3140ef087f1d894d0aa53effa9aaa24577b02ebd Mon Sep 17 00:00:00 2001 From: Mario Fetka Date: Sun, 14 Apr 2024 10:34:16 +0200 Subject: [PATCH] correct distro detection --- install.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/install.sh b/install.sh index d55994a..604c4a0 100644 --- a/install.sh +++ b/install.sh @@ -50,7 +50,7 @@ else exit 1 fi -if [ "${CODENAME}" = "bullseye" ]; then +if [ "${CODENAME}" = "bookworm" ]; then DIST="kinetic" elif [ "${CODENAME}" = "bullseye" ]; then DIST="focal" @@ -226,6 +226,13 @@ fi #============================================================================================================== +if [ "${CODENAME}" = "bookworm" ]; then +msg_info "adding bullseye repository to bookworm for python2" +echo "deb http://deb.debian.org/debian bullseye contrib non-free main" | tee /etc/apt/sources.list &>/dev/null +echo "deb http://deb.debian.org/debian bullseye-updates contrib non-free main" | tee /etc/apt/sources.list &>/dev/null +echo "deb http://security.debian.org bullseye-security contrib non-free main" | tee /etc/apt/sources.list &>/dev/null +fi + msg_info "Starting ${APP} Installation !!!! Plz set Installation dir the same as bevor !!!" apt install -y unrar-free python3 python2 &>/dev/null wget -N http://www.mysticbbs.com/downloads/mys${MYSTIC_VER}_${MYSTIC_ARCH}.${MYSTIC_EXT} -O /usr/local/src/mystic/mys${MYSTIC_VER}_${MYSTIC_ARCH}.${MYSTIC_EXT} &>/dev/null