Skip to content

Commit 1bd32ec

Browse files
authored
Merge pull request #7036 from Countly/mongodb-ubuntu-24-support
Add support for Ubuntu 24 in MongoDB install script
2 parents 9e9c012 + da4a1e6 commit 1bd32ec

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

bin/scripts/mongodb.install.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -354,8 +354,8 @@ gpgkey=https://pgp.mongodb.com/server-8.0.asc" > /etc/yum.repos.d/mongodb-org-8.
354354
UBUNTU_YEAR="$(lsb_release -sr | cut -d '.' -f 1)";
355355
UBUNTU_RELEASE="$(lsb_release -cs)"
356356

357-
if [[ "$UBUNTU_YEAR" != "20" && "$UBUNTU_YEAR" != "22" ]]; then
358-
echo "Unsupported OS version, only support Ubuntu 20 and 22."
357+
if [[ "$UBUNTU_YEAR" != "20" && "$UBUNTU_YEAR" != "22" && "$UBUNTU_YEAR" != "24" ]]; then
358+
echo "Unsupported OS version, only support Ubuntu 20, 22 and 24"
359359
exit 1
360360
fi
361361

@@ -380,4 +380,4 @@ elif [ "$1" == "configure" ]; then
380380
else
381381
mongodb_configure
382382
fi
383-
fi
383+
fi

0 commit comments

Comments
 (0)