From e22b3e2b9e31badd9bafc39bd6ba1991ba140c43 Mon Sep 17 00:00:00 2001 From: "CanbiZ (MickLesk)" <47820557+MickLesk@users.noreply.github.com> Date: Tue, 24 Feb 2026 09:26:50 +0100 Subject: [PATCH] fix(databasus): use get_latest_gh_tag for MongoDB tools version Replace hardcoded 100.14.1 with dynamic version lookup via get_latest_gh_tag (from feat/get-latest-gh-tag branch). Falls back to 100.14.1 if the API call fails. Depends-On: feat/get-latest-gh-tag --- install/databasus-install.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/install/databasus-install.sh b/install/databasus-install.sh index 0a9f34878..4573084fa 100644 --- a/install/databasus-install.sh +++ b/install/databasus-install.sh @@ -33,8 +33,9 @@ done # Install MongoDB Database Tools via direct .deb (no APT repo for Debian 13) MONGO_ARCH=$(get_system_arch uname) [[ "$(get_os_info id)" == "ubuntu" ]] && MONGO_DIST="ubuntu2204" || MONGO_DIST="debian12" +MONGO_VERSION=$(get_latest_gh_tag "mongodb/mongo-tools" "100." || echo "100.14.1") tmp_file=$(mktemp) -curl -fsSL -o "$tmp_file" "https://fastdl.mongodb.org/tools/db/mongodb-database-tools-${MONGO_DIST}-${MONGO_ARCH}-100.14.1.deb" +curl -fsSL -o "$tmp_file" "https://fastdl.mongodb.org/tools/db/mongodb-database-tools-${MONGO_DIST}-${MONGO_ARCH}-${MONGO_VERSION}.deb" $STD dpkg -i "$tmp_file" || $STD apt install -f -y --no-install-recommends rm -f "$tmp_file" mkdir -p /usr/local/mongodb-database-tools/bin