Skip to content

Commit

Permalink
chore: Update OSSEC configuration handling in install.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
bengo237 committed Sep 12, 2024
1 parent c68a63e commit 62c6457
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions scripts/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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..."

Expand Down

0 comments on commit 62c6457

Please sign in to comment.