feat: initial commit

This commit is contained in:
nikola
2026-05-19 14:53:37 +02:00
commit f8eba4f09a
21 changed files with 1061 additions and 0 deletions
+24
View File
@@ -0,0 +1,24 @@
#!/usr/bin/env bash
set -euo pipefail
if [[ "${EUID}" -ne 0 ]]; then
echo "Run as root (sudo)." >&2
exit 1
fi
echo "[1/4] System update and tools"
apt-get update -y
apt-get install -y curl tar
echo "[2/4] Download Wazuh installer"
cd /root
curl -sSLO https://packages.wazuh.com/4.14/wazuh-install.sh
chmod +x wazuh-install.sh
echo "[3/4] Install Wazuh all-in-one"
bash ./wazuh-install.sh -a
echo "[4/4] Installation finished"
echo "Open: https://$(hostname -I | awk '{print $1}')"
echo "Installer output contains generated admin credentials."