ProxmoxVED/install/wazuh-install.sh
CanbiZ 5fb46f7182
Update install/wazuh-install.sh
Co-authored-by: Bas van den Berg <74251551+bvdberg01@users.noreply.github.com>
2025-03-17 09:38:22 +01:00

42 lines
992 B
Bash

#!/usr/bin/env bash
# Copyright (c) 2024 community-scripts ORG
# Author: Omar Minaya
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
# Source: https://wazuh.com/
source /dev/stdin <<<"$FUNCTIONS_FILE_PATH"
color
verb_ip6
catch_errors
setting_up_container
network_check
update_os
msg_info "Installing Dependencies"
$STD apt-get install -y \
sudo \
mc \
curl
msg_ok "Installed Dependencies"
# Fetching the latest Wazuh version
msg_info "Fetching Latest Wazuh Version"
RELEASE=$(curl -s https://api.github.com/repos/wazuh/wazuh/releases/latest | grep '"tag_name"' | awk -F '"' '{print substr($4, 2, length($2)-4)}')
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
bash ./wazuh-install.sh -a
msg_ok "Setup Wazuh"
motd_ssh
customize
msg_info "Cleaning up"
rm -f wazuh-*.sh
$STD apt-get -y autoremove
$STD apt-get -y autoclean
msg_ok "Cleaned"