diff --git a/scripts/_common.sh b/scripts/_common.sh index c1461aa..828ec42 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -337,7 +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 - elif [[ "$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