From 528728fc8863ae7b4ec93ba99063eb082c167aa3 Mon Sep 17 00:00:00 2001 From: DarkIsDude Date: Fri, 26 Jun 2026 11:28:32 +0200 Subject: [PATCH 1/2] =?UTF-8?q?=F0=9F=90=9B=20add=20missing=20libmongo.sh?= =?UTF-8?q?=20fork?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Issue: ZENKO-5302 --- .../rootfs/opt/bitnami/scripts/libmongodb.sh | 43 +++++++++++++++++++ 1 file changed, 43 insertions(+) diff --git a/solution-base/images/mongodb-sharded/debian-12/rootfs/opt/bitnami/scripts/libmongodb.sh b/solution-base/images/mongodb-sharded/debian-12/rootfs/opt/bitnami/scripts/libmongodb.sh index ea90282a47..52b1a0da55 100644 --- a/solution-base/images/mongodb-sharded/debian-12/rootfs/opt/bitnami/scripts/libmongodb.sh +++ b/solution-base/images/mongodb-sharded/debian-12/rootfs/opt/bitnami/scripts/libmongodb.sh @@ -1667,3 +1667,46 @@ mongodb_execute_print_output() { mongodb_execute() { debug_execute mongodb_execute_print_output "$@" } + +# Copyright Broadcom, Inc. All Rights Reserved. +# SPDX-License-Identifier: APACHE-2.0 + +# shellcheck disable=SC2148 + +######################## +# Execute an arbitrary query/queries against the running MongoDB service +# Stdin: +# Query/queries to execute +# Arguments: +# $1 - User to run queries +# $2 - Password +# $3 - Database where to run the queries +# $4 - Host (default to result of get_mongo_hostname function) +# $5 - Port (default $MONGODB_PORT_NUMBER) +# $6 - Extra arguments (default $MONGODB_SHELL_EXTRA_FLAGS) +# Returns: +# None +######################## +mongodb_execute() { + local -r user="${1:-}" + local -r password="${2:-}" + local -r database="${3:-}" + local -r host="${4:-$(get_mongo_hostname)}" + local -r port="${5:-$MONGODB_PORT_NUMBER}" + local -r extra_args="${6:-$MONGODB_SHELL_EXTRA_FLAGS}" + local final_user="$user" + # If password is empty it means no auth, do not specify user + [[ -z "$password" ]] && final_user="" + + local -a args=("--host" "$host" "--port" "$port") + [[ -n "$final_user" ]] && args+=("-u" "$final_user") + [[ -n "$password" ]] && args+=("-p" "$password") + if [[ -n "$extra_args" ]]; then + local extra_args_array=() + read -r -a extra_args_array <<<"$extra_args" + [[ "${#extra_args_array[@]}" -gt 0 ]] && args+=("${extra_args_array[@]}") + fi + [[ -n "$database" ]] && args+=("$database") + + "$MONGODB_BIN_DIR/mongosh" "${args[@]}" +} From 49b6d39d2ffaaa14a3d4095ffa82ec1058994923 Mon Sep 17 00:00:00 2001 From: DarkIsDude Date: Mon, 29 Jun 2026 14:19:59 +0200 Subject: [PATCH 2/2] =?UTF-8?q?=F0=9F=94=96=20Release=20Zenko=202.15.2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Issue: ZENKO-5302 --- VERSION | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/VERSION b/VERSION index 42e94ba131..971f2637d8 100644 --- a/VERSION +++ b/VERSION @@ -1,4 +1,4 @@ -VERSION="2.15.1" +VERSION="2.15.2" VERSION_HOTFIX=