From e378b1342a1064cbbcfc2fa4dbf39268256a4cb7 Mon Sep 17 00:00:00 2001 From: Thomas <51749973+Thovi98@users.noreply.github.com> Date: Tue, 30 Apr 2024 09:05:37 +0200 Subject: [PATCH] new mongo test --- scripts/_common.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/scripts/_common.sh b/scripts/_common.sh index f5e4169..57e2a5c 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -4,7 +4,7 @@ # COMMON VARIABLES #================================================= -nodejs_version=18.20.1 +nodejs_version=18.20.2 #================================================= # PERSONAL HELPERS @@ -339,6 +339,12 @@ ynh_install_mongo() { mongo_debian_release=buster fi + if [[ "$mongo_version" >= "5.0" && "$mongo_version" <= "6.0" && "$mongo_debian_release" != "bullseye" ]]; then + ynh_print_warn --message="Switched to Bullseye install as this version of Mongo is not compatible with $mongo_debian_release." + mongo_debian_release=bullseye + fi + + if [ "$mongo_debian_release" == buster ] ; then ubuntu_version="bionic" elif [ "$mongo_debian_release" == bullseye ] ; then