25 lines
553 B
Bash
Executable File
25 lines
553 B
Bash
Executable File
#!/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."
|
|
|