diff --git a/scripts/install.sh b/scripts/install.sh index 7642a3b..099e0a9 100755 --- a/scripts/install.sh +++ b/scripts/install.sh @@ -359,11 +359,12 @@ if [ -f "$OSSEC_CONF_PATH" ]; then else # Notify the user that the file is missing warn_message "OSSEC configuration file not found at $OSSEC_CONF_PATH." - # Exit the function to avoid further actions - return 1 + # Exit the script with a non-zero status + exit 1 fi + # Step 5: Restart Wazuh agent print_step 5 "Restarting Wazuh agent..."