mirror of
https://github.com/jiojciojsioe3/a3cjroijsiojiorj.git
synced 2024-11-15 07:21:50 +08:00
fix for ubuntu
This commit is contained in:
parent
bbee87638a
commit
41e11992c9
@ -4,11 +4,14 @@ set -euo pipefail
|
|||||||
sudo apt update
|
sudo apt update
|
||||||
sudo apt upgrade -y
|
sudo apt upgrade -y
|
||||||
|
|
||||||
sudo apt install -y unzip git python3-pip python3-virtualenv nginx ffmpeg redis supervisor
|
sudo apt install -y git python3-pip python3-virtualenv nginx ffmpeg redis supervisor
|
||||||
|
|
||||||
if [[ -r /etc/os-release ]]; then
|
if [[ -r /etc/os-release ]]; then
|
||||||
. /etc/os-release
|
. /etc/os-release
|
||||||
if [[ $ID = ubuntu ]]; then
|
if [[ $ID = ubuntu ]]; then
|
||||||
|
if [[ $VERSION_CODENAME = impish ]]; then
|
||||||
|
VERSION_CODENAME=focal # MongoDB does not provide packages for Ubuntu 21.10
|
||||||
|
fi
|
||||||
REPO="https://repo.mongodb.org/apt/ubuntu $VERSION_CODENAME/mongodb-org/5.0 multiverse"
|
REPO="https://repo.mongodb.org/apt/ubuntu $VERSION_CODENAME/mongodb-org/5.0 multiverse"
|
||||||
elif [[ $ID = debian ]]; then
|
elif [[ $ID = debian ]]; then
|
||||||
if [[ $VERSION_CODENAME = bullseye ]]; then
|
if [[ $VERSION_CODENAME = bullseye ]]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user