From f7d2cb2c3d4b55711a06ba74b8d6dfcae706c8c9 Mon Sep 17 00:00:00 2001 From: Carlos Bordon Date: Thu, 4 Dec 2025 16:27:09 -0300 Subject: [PATCH] Added debug symbols --- .../wazuh-dashboard/config/wazuh_app_config.sh | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/build-docker-images/wazuh-dashboard/config/wazuh_app_config.sh b/build-docker-images/wazuh-dashboard/config/wazuh_app_config.sh index 5f43a0e3..5a318aea 100644 --- a/build-docker-images/wazuh-dashboard/config/wazuh_app_config.sh +++ b/build-docker-images/wazuh-dashboard/config/wazuh_app_config.sh @@ -1,5 +1,6 @@ #!/bin/bash # Wazuh Docker Copyright (C) 2017, Wazuh Inc. (License GPLv2) +set -x wazuh_url="${WAZUH_API_URL:-https://wazuh}" wazuh_port="${API_PORT:-55000}" @@ -12,7 +13,13 @@ export NAME=wazuh-dashboard export INSTALLATION_DIR=/usr/share/${NAME} export CONFIG_DIR=${INSTALLATION_DIR}/config -dashboard_config_file="/usr/share/wazuh-dashboard/config/opensearch_dashboards.yml" +dashboard_config_file="${CONFIG_DIR}/opensearch_dashboards.yml" + +printf "Modifying Wazuh App configuration file: %s\n" "$dashboard_config_file" +ls -la ${CONFIG_DIR} + +printf "/etc/wazuh-dashboard contents:\n" +ls -la /etc/wazuh-dashboard # Modify opensearch_dashboards.yml config paths if [ -d "/etc/wazuh-dashboard" ]; then @@ -21,7 +28,7 @@ if [ -d "/etc/wazuh-dashboard" ]; then mv /etc/wazuh-dashboard/* ${CONFIG_DIR}/ rmdir /etc/wazuh-dashboard fi -sed -i "s|/etc/wazuh-dashboard|${CONFIG_DIR}|g" ${CONFIG_DIR}/opensearch_dashboards.yml +sed -i "s|/etc/wazuh-dashboard|${CONFIG_DIR}|g" ${dashboard_config_file} declare -A CONFIG_MAP=( [pattern]=$PATTERN @@ -62,3 +69,5 @@ EOF else echo "Wazuh APP already configured" fi + +set +x \ No newline at end of file