Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions bin/scripts/mongodb.install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -380,4 +380,4 @@ elif [ "$1" == "configure" ]; then
else
mongodb_configure
fi
fi
fi
Loading