From 390061cf501fbf5c2153237d1170392b963638ad Mon Sep 17 00:00:00 2001 From: tremor021 Date: Thu, 30 Apr 2026 12:17:36 +0200 Subject: [PATCH] tools.func: handle minor versions for 8.x --- misc/tools.func | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/misc/tools.func b/misc/tools.func index c066685a..0e3fd0c2 100644 --- a/misc/tools.func +++ b/misc/tools.func @@ -6059,8 +6059,11 @@ function setup_mongodb() { } # Setup repository + # MongoDB 8.x versions beyond 8.0 reuse the server-8.0.asc PGP key + local MONGO_KEY_VERSION="${MONGO_VERSION}" + [[ "${MONGO_VERSION}" == 8.[1-9]* ]] && MONGO_KEY_VERSION="8.0" manage_tool_repository "mongodb" "$MONGO_VERSION" "$MONGO_BASE_URL" \ - "https://www.mongodb.org/static/pgp/server-${MONGO_VERSION}.asc" || { + "https://www.mongodb.org/static/pgp/server-${MONGO_KEY_VERSION}.asc" || { msg_error "Failed to setup MongoDB repository" return 100 }