Fix script.sh
authorCássio Gabriel <cassiogabrielcontato@gmail.com>
Sat, 24 Jan 2026 19:12:25 +0000 (16:12 -0300)
committerCássio Gabriel <cassiogabrielcontato@gmail.com>
Sat, 24 Jan 2026 20:52:11 +0000 (17:52 -0300)
assessment/scripts/setup.sh

index 4326cc0c893af7095ae3ec91e0dcf7850f536e5b..b0757bda8f3e27ae7b28fe76cf6398772d6b6cb5 100644 (file)
@@ -23,9 +23,14 @@ sudo curl -L "https://github.com/docker/compose/releases/download/v5.0.0/docker-
 
 sudo chmod +x /usr/local/bin/docker-compose
 
-# Create Wazuh dir
-sudo mkdir -p /opt/wazuh
-cd /opt/wazuh
+# Adjust the kernel to allow more than 65530 VMAs. Wazuh requeriment.
+sysctl -w vm.max_map_count=262144
+
+# Clone the official Wazuh repo
+git clone https://github.com/wazuh/wazuh-docker.git -b v4.14.2
+
+# Navegate to the 'single-node' directory:
+cd wazuh-docker/single-node/
 
 # Deploy Wazuh via Docker Compose
 sudo docker-compose up -d