From 10ae5c5944e473ee302b0511cd87155c564bd665 Mon Sep 17 00:00:00 2001 From: Thomas <51749973+Thovi98@users.noreply.github.com> Date: Tue, 30 Apr 2024 10:17:32 +0200 Subject: [PATCH] Update _common.sh --- scripts/_common.sh | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/scripts/_common.sh b/scripts/_common.sh index 57e2a5c..c1461aa 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -337,9 +337,7 @@ ynh_install_mongo() { if [[ "$mongo_version" == "4.4" && "$mongo_debian_release" != "buster" ]]; then ynh_print_warn --message="Switched to Buster install as Mongo 4.4 is not compatible with $mongo_debian_release." mongo_debian_release=buster - fi - - if [[ "$mongo_version" >= "5.0" && "$mongo_version" <= "6.0" && "$mongo_debian_release" != "bullseye" ]]; then + elif [[ "$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