Fix: Remove keystore before entrypoint to avoid interactive prompt
Some checks failed
Test / test (push) Has been cancelled
Some checks failed
Test / test (push) Has been cancelled
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 <noreply@anthropic.com>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user