From 08d4b38f9a480824ae5bab1f953205ff6c0be9f0 Mon Sep 17 00:00:00 2001 From: Gui-Gos <97973228+Gui-Gos@users.noreply.github.com> Date: Fri, 2 Jan 2026 15:33:16 +0100 Subject: [PATCH] Fix: Remove keystore before entrypoint to avoid interactive prompt MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The official Wazuh dashboard entrypoint prompts 'Overwrite? [y/N]' if the keystore already exists. This causes the container to hang waiting for user input on fresh installs. Solution: Delete the keystore file before exec'ing the entrypoint. The entrypoint will recreate it automatically without prompting. This ensures fresh installs work without manual intervention. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 --- apps/wazuh-runtipi/data/scripts/init-dashboard.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/apps/wazuh-runtipi/data/scripts/init-dashboard.sh b/apps/wazuh-runtipi/data/scripts/init-dashboard.sh index 1d11c60..f3f4cb0 100644 --- a/apps/wazuh-runtipi/data/scripts/init-dashboard.sh +++ b/apps/wazuh-runtipi/data/scripts/init-dashboard.sh @@ -46,5 +46,13 @@ fi echo "DASHBOARD_INIT: Configuration complete, starting dashboard..." +# Remove keystore to avoid interactive prompt on fresh installs +# The official entrypoint will recreate it automatically without prompting +KEYSTORE_PATH="/usr/share/wazuh-dashboard/config/opensearch_dashboards.keystore" +if [ -f "$KEYSTORE_PATH" ]; then + echo "DASHBOARD_INIT: Removing existing keystore to avoid interactive prompt..." + rm -f "$KEYSTORE_PATH" +fi + # Just exec the official entrypoint - let it handle everything! exec /entrypoint.sh