Add comment on setup.sh
authorCássio Gabriel <cassiogabrielcontato@gmail.com>
Sat, 24 Jan 2026 20:03:38 +0000 (17:03 -0300)
committerCássio Gabriel <cassiogabrielcontato@gmail.com>
Sat, 24 Jan 2026 20:52:11 +0000 (17:52 -0300)
assessment/scripts/setup.sh

index b0757bda8f3e27ae7b28fe76cf6398772d6b6cb5..a13a652bfe85baf2cc44bb01dc515d54bff1b57e 100644 (file)
@@ -4,6 +4,8 @@
 # Date: 01/24/2026
 
 #!/bin/bash
+
+# Basic error handling
 set -euo pipefail
 
 # Update the system
@@ -24,7 +26,7 @@ sudo curl -L "https://github.com/docker/compose/releases/download/v5.0.0/docker-
 sudo chmod +x /usr/local/bin/docker-compose
 
 # Adjust the kernel to allow more than 65530 VMAs. Wazuh requeriment.
-sysctl -w vm.max_map_count=262144
+sudo 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