From 41e11992c9873100a53e3ad69c6d42729aaff249 Mon Sep 17 00:00:00 2001 From: Bui Date: Mon, 21 Mar 2022 04:30:03 +0000 Subject: [PATCH] fix for ubuntu --- tools/setup.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tools/setup.sh b/tools/setup.sh index f5bc3ad..b227f5f 100644 --- a/tools/setup.sh +++ b/tools/setup.sh @@ -4,11 +4,14 @@ set -euo pipefail sudo apt update 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 . /etc/os-release 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" elif [[ $ID = debian ]]; then if [[ $VERSION_CODENAME = bullseye ]]; then