Update wazuh-install.sh

This commit is contained in:
Bas van den Berg 2025-03-23 10:38:25 +01:00 committed by GitHub
parent f5acf12b90
commit cb36fc758a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -28,7 +28,13 @@ msg_ok "Latest Wazuh Version: $RELEASE"
msg_info "Setup Wazuh"
wget -q https://packages.wazuh.com/$RELEASE/wazuh-install.sh
chmod +x wazuh-install.sh
$STD bash wazuh-install.sh -a
if [ "$STD" = "silent" ]; then
bash wazuh-install.sh -a >> ~/wazuh-install.output 2>&1
else
bash wazuh-install.sh -a | tee -a ~/wazuh-install.output
fi
cat ~/wazuh-install.output | grep -E "User|Password" | awk '{$1=$1};1' | sed '1i wazuh-credentials' > ~/wazuh.creds
msg_ok "Setup Wazuh"
motd_ssh
@ -36,6 +42,7 @@ customize
msg_info "Cleaning up"
rm -f wazuh-*.sh
rm -f ~/wazuh-install.output
$STD apt-get -y autoremove
$STD apt-get -y autoclean
msg_ok "Cleaned"