Add Ubuntu support
This commit is contained in:
parent
ffaa0d83de
commit
b544d0e81e
@ -117,7 +117,9 @@ else
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [ "${CODENAME}" = "bookworm" ]; then
|
||||
if [ "${CODENAME}" = "trixie" ]; then
|
||||
UBUNTU="kinetic"
|
||||
elif [ "${CODENAME}" = "bookworm" ]; then
|
||||
UBUNTU="kinetic"
|
||||
elif [ "${CODENAME}" = "bullseye" ]; then
|
||||
UBUNTU="focal"
|
||||
@ -129,6 +131,14 @@ else
|
||||
UBUNTU="${CODENAME}"
|
||||
fi
|
||||
|
||||
if [ "${CODENAME}" = "trixie" ]; then
|
||||
msg_info "adding bullseye repository to bookworm for python2"
|
||||
echo "deb http://deb.debian.org/debian bullseye contrib non-free main" > /etc/apt/sources.list.d/bullseye.list
|
||||
echo "deb http://deb.debian.org/debian bullseye-updates contrib non-free main" >> /etc/apt/sources.list.d/bullseye.list
|
||||
echo "deb http://security.debian.org bullseye-security contrib non-free main" >> /etc/apt/sources.list.d/bullseye.list
|
||||
msg_ok "adding bullseye repository to bookworm for python2"
|
||||
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" > /etc/apt/sources.list.d/bullseye.list
|
||||
@ -137,6 +147,14 @@ echo "deb http://security.debian.org bullseye-security contrib non-free main" >>
|
||||
msg_ok "adding bullseye repository to bookworm for python2"
|
||||
fi
|
||||
|
||||
if [ "${CODENAME}" = "noble" ]; then
|
||||
msg_info "adding jammy repository to noble for python2"
|
||||
echo "deb http://archive.ubuntu.com/ubuntu jammy main restricted universe multiverse" > /etc/apt/sources.list.d/jammy.list
|
||||
echo "deb http://archive.ubuntu.com/ubuntu jammy-updates main restricted universe multiverse" >> /etc/apt/sources.list.d/jammy.list
|
||||
echo "deb http://archive.ubuntu.com/ubuntu jammy-security main restricted universe multiverse" >> /etc/apt/sources.list.d/jammy.list
|
||||
msg_ok "adding jammy repository to noble for python2"
|
||||
fi
|
||||
|
||||
msg_info "Setting up ${APP} Repository"
|
||||
cmd_exec apt install -y software-properties-common &>>$INSTALLLOG
|
||||
if [ "${DIST}" = "Debian" ]; then
|
||||
|
Loading…
Reference in New Issue
Block a user