mirror of
https://github.com/jiojciojsioe3/a3cjroijsiojiorj.git
synced 2024-11-22 02:41:51 +08:00
Update setup.sh
Ubuntu 21.10 has reached EOF and is kept for backward-compatibility, see https://wiki.ubuntu.com/Releases. Add Debian testing/unstable support.
This commit is contained in:
parent
2ac1538549
commit
f9b540a84c
@ -7,14 +7,18 @@ sudo apt install -y git python3-pip python3-virtualenv python3-venv nginx ffmpeg
|
||||
if [[ -r /etc/os-release ]]; then
|
||||
. /etc/os-release
|
||||
if [[ $ID = ubuntu ]]; then
|
||||
if [[ $VERSION_CODENAME = impish ]]; then
|
||||
VERSION_CODENAME=focal # MongoDB does not provide packages for Ubuntu 22.04 LTS yet
|
||||
fi
|
||||
# MongoDB supports only LTS and has not released package for Ubuntu 22.04 LTS yet
|
||||
case $VERSION_CODENAME in
|
||||
impish|kinetic|jammy)
|
||||
VERSION_CODENAME=focal ;;
|
||||
esac
|
||||
REPO="https://repo.mongodb.org/apt/ubuntu $VERSION_CODENAME/mongodb-org/5.0 multiverse"
|
||||
elif [[ $ID = debian ]]; then
|
||||
if [[ $VERSION_CODENAME = bullseye ]]; then
|
||||
VERSION_CODENAME=buster # MongoDB does not provide packages for Debian 11 yet
|
||||
fi
|
||||
# MongoDB does not provide packages for Debian 11 yet
|
||||
case $VERSION_CODENAME in
|
||||
bullseye|bookworm|sid)
|
||||
VERSION_CODENAME=buster ;;
|
||||
esac
|
||||
REPO="https://repo.mongodb.org/apt/debian $VERSION_CODENAME/mongodb-org/5.0 main"
|
||||
else
|
||||
echo "Unsupported distribution $ID"
|
||||
|
Loading…
Reference in New Issue
Block a user