correct DIST Variable

This commit is contained in:
Mario Fetka 2024-04-20 10:44:41 +02:00
parent 95359d39b8
commit 44192ec2a7

View File

@ -102,15 +102,15 @@ else
fi
if [ "${CODENAME}" = "bookworm" ]; then
DIST="kinetic"
UBUNTU="kinetic"
elif [ "${CODENAME}" = "bullseye" ]; then
DIST="focal"
UBUNTU="focal"
elif [ "${CODENAME}" = "buster" ]; then
DIST="bionic"
UBUNTU="bionic"
elif [ "${CODENAME}" = "stretch" ]; then
DIST="xenial"
UBUNTU="xenial"
else
DIST="${CODENAME}"
UBUNTU="${CODENAME}"
fi
if [ "${CODENAME}" = "bookworm" ]; then
@ -465,7 +465,7 @@ if [ $DOSEMU = "Yes" ]; then
msg_info "Installing DosEmu2 Dependencies for ${APP}"
pushd $MSTEMPDIR &>/dev/null
curl 'https://keyserver.ubuntu.com/pks/lookup?op=get&search=0x6d9cd73b401a130336ed0a56ebe1b5ded2ad45d6' | tee /etc/apt/trusted.gpg.d/code.launchpad.net-dosemu2.asc &>/dev/null
echo "deb https://ppa.launchpadcontent.net/dosemu2/ppa/ubuntu $DIST main" | tee /etc/apt/sources.list.d/dosemu2.list &>/dev/null
echo "deb https://ppa.launchpadcontent.net/dosemu2/ppa/ubuntu $UBUNTU main" | tee /etc/apt/sources.list.d/dosemu2.list &>/dev/null
apt update &>/dev/null
apt install -y dosemu2 &>/dev/null
apt install -y install-otherdos &>/dev/null