This is an automated email from the ASF dual-hosted git repository.

shuber pushed a commit to branch opensearch-persistence
in repository https://gitbox.apache.org/repos/asf/unomi.git


The following commit(s) were added to refs/heads/opensearch-persistence by this 
push:
     new 179927cb2 Refactor entrypoint.sh to build node URLs array for both 
OpenSearch and Elasticsearch configurations
179927cb2 is described below

commit 179927cb2e32297e8c7a1f3ef998c886c92b95d9
Author: Serge Huber <[email protected]>
AuthorDate: Mon Oct 13 19:28:28 2025 +0200

    Refactor entrypoint.sh to build node URLs array for both OpenSearch and 
Elasticsearch configurations
---
 docker/src/main/docker/entrypoint.sh | 9 +++------
 1 file changed, 3 insertions(+), 6 deletions(-)

diff --git a/docker/src/main/docker/entrypoint.sh 
b/docker/src/main/docker/entrypoint.sh
index 45b556c6c..553aac374 100755
--- a/docker/src/main/docker/entrypoint.sh
+++ b/docker/src/main/docker/entrypoint.sh
@@ -63,6 +63,8 @@ if [ "$SEARCH_ENGINE" = "opensearch" ]; then
     auth_header="Authorization: Basic $(echo -n 
"admin:${UNOMI_OPENSEARCH_PASSWORD}" | base64)"
     health_endpoint="_cluster/health"
     curl_opts="-k -H \"${auth_header}\" -H \"Content-Type: application/json\""
+    # Build array of node URLs
+    IFS=',' read -ra NODES <<< "${UNOMI_OPENSEARCH_ADDRESSES}"
 else
     # Elasticsearch configuration
     if [ "$UNOMI_ELASTICSEARCH_SSL_ENABLE" = 'true' ]; then
@@ -76,12 +78,7 @@ else
         curl_opts="-H \"${auth_header}\""
     fi
     health_endpoint="_cluster/health"
-fi
-
-# Build array of node URLs
-if [ "$SEARCH_ENGINE" = "opensearch" ]; then
-    IFS=',' read -ra NODES <<< "${UNOMI_OPENSEARCH_ADDRESSES}"
-else
+    # Build array of node URLs
     IFS=',' read -ra NODES <<< "${UNOMI_ELASTICSEARCH_ADDRESSES}"
 fi
 

Reply via email to