correct distro detection

This commit is contained in:
Mario Fetka 2024-04-14 10:34:16 +02:00
parent 8eb5e7499d
commit 3140ef087f

View File

@ -50,7 +50,7 @@ else
exit 1 exit 1
fi fi
if [ "${CODENAME}" = "bullseye" ]; then if [ "${CODENAME}" = "bookworm" ]; then
DIST="kinetic" DIST="kinetic"
elif [ "${CODENAME}" = "bullseye" ]; then elif [ "${CODENAME}" = "bullseye" ]; then
DIST="focal" 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 !!!" msg_info "Starting ${APP} Installation !!!! Plz set Installation dir the same as bevor !!!"
apt install -y unrar-free python3 python2 &>/dev/null 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 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