Install mongodb 7.0 for Focal
The latest pymongo removed support for mongodb < 7 but the version available in Ubuntu Focal, which is currently used in py39 unit tests, does not meet this requirement. Change-Id: I8cb6f6b76f65c739aa1c3c1c4c1920674a45bf45
This commit is contained in:
parent
d6f5d9c78d
commit
c655ab0f57
@ -49,6 +49,13 @@ elif [[ $ubuntu_version == '22.04' ]]; then
|
|||||||
sudo apt install -y mongodb-org
|
sudo apt install -y mongodb-org
|
||||||
sudo systemctl restart mongod
|
sudo systemctl restart mongod
|
||||||
sudo systemctl status mongod
|
sudo systemctl status mongod
|
||||||
|
elif [[ $ubuntu_version == '20.04' ]]; then
|
||||||
|
wget -qO - https://www.mongodb.org/static/pgp/server-7.0.asc | sudo apt-key add -
|
||||||
|
echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu focal/mongodb-org/7.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-7.0.list
|
||||||
|
sudo apt update
|
||||||
|
sudo apt install -y mongodb-org
|
||||||
|
sudo systemctl restart mongod
|
||||||
|
sudo systemctl status mongod
|
||||||
elif [[ $ubuntu_version == '12' ]]; then
|
elif [[ $ubuntu_version == '12' ]]; then
|
||||||
wget -qO - https://www.mongodb.org/static/pgp/server-7.0.asc | sudo apt-key add -
|
wget -qO - https://www.mongodb.org/static/pgp/server-7.0.asc | sudo apt-key add -
|
||||||
echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu jammy/mongodb-org/7.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-7.0.list
|
echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu jammy/mongodb-org/7.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-7.0.list
|
||||||
|
Loading…
x
Reference in New Issue
Block a user