From c469d0d556693be45feb8a4adc0a7cf50b63589f Mon Sep 17 00:00:00 2001 From: MickLesk <47820557+MickLesk@users.noreply.github.com> Date: Tue, 3 Nov 2026 10:40:12 +0100 Subject: [PATCH] Wazuh: show the installer's own error when it fails wazuh-install.sh writes everything to ~/wazuh-install.output, so a failed run left only "bash exited with status 1" in the log and the telemetry (8 runs in three days, three of them with the default resources). The end of that output now goes into the install log. --- install/wazuh-install.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/install/wazuh-install.sh b/install/wazuh-install.sh index cc4a30668..8f335bf35 100644 --- a/install/wazuh-install.sh +++ b/install/wazuh-install.sh @@ -21,7 +21,11 @@ msg_info "Setup Wazuh" curl -fsSL https://packages.wazuh.com/$RELEASE/wazuh-install.sh -o wazuh-install.sh chmod +x wazuh-install.sh if [ "$STD" = "silent" ]; then - bash wazuh-install.sh -a >>~/wazuh-install.output + bash wazuh-install.sh -a >>~/wazuh-install.output || { + $STD tail -n 25 ~/wazuh-install.output + msg_error "The Wazuh installer failed, see its output above or in ~/wazuh-install.output" + exit 1 + } else bash wazuh-install.sh -a | tee -a ~/wazuh-install.output fi