diff --git a/bin/scripts/mongodb.install.sh b/bin/scripts/mongodb.install.sh index 851e9c25208..96a04bd7a6d 100644 --- a/bin/scripts/mongodb.install.sh +++ b/bin/scripts/mongodb.install.sh @@ -354,8 +354,8 @@ gpgkey=https://pgp.mongodb.com/server-8.0.asc" > /etc/yum.repos.d/mongodb-org-8. UBUNTU_YEAR="$(lsb_release -sr | cut -d '.' -f 1)"; UBUNTU_RELEASE="$(lsb_release -cs)" - if [[ "$UBUNTU_YEAR" != "20" && "$UBUNTU_YEAR" != "22" ]]; then - echo "Unsupported OS version, only support Ubuntu 20 and 22." + if [[ "$UBUNTU_YEAR" != "20" && "$UBUNTU_YEAR" != "22" && "$UBUNTU_YEAR" != "24" ]]; then + echo "Unsupported OS version, only support Ubuntu 20, 22 and 24" exit 1 fi @@ -380,4 +380,4 @@ elif [ "$1" == "configure" ]; then else mongodb_configure fi -fi \ No newline at end of file +fi