From 4f763eef59147cb401fc115e1de5293403ee6a69 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A9rard=20Collin?= Date: Sat, 25 May 2024 12:34:11 +0200 Subject: [PATCH] Back to mongodb-org otherwise no mongo shell --- scripts/ynh_mongo_db__2 | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/scripts/ynh_mongo_db__2 b/scripts/ynh_mongo_db__2 index 48f83dd..eabd74e 100644 --- a/scripts/ynh_mongo_db__2 +++ b/scripts/ynh_mongo_db__2 @@ -322,6 +322,12 @@ ynh_install_mongo() { mongo_version="4.4" fi + if [[ "$mongo_version" == "4.4" ]]; then + ynh_print_warn --message="Switching to buster package install for Mongo 4.4." + mongo_debian_release=buster + mongo_packages="mongodb-org-server mongodb-database-tools mongodb-mongosh-shared-openssl11" + fi + ynh_install_extra_app_dependencies --repo="deb http://repo.mongodb.org/apt/debian $mongo_debian_release/mongodb-org/$mongo_version main" --package="$mongo_packages" --key="https://www.mongodb.org/static/pgp/server-$mongo_version.asc" mongodb_servicename=mongod