Skip to content

Commit

Permalink
chore: Update Snort installation script for macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
bengo237 committed Sep 11, 2024
1 parent 28903df commit fb841b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ update_ossec_conf_macos() {
info_message "Updating $OSSEC_CONF_PATH"

# Add the Snort configuration to ossec.conf
if ! grep -q "$content_to_add" "$OSSEC_CONF_PATH"; then
if ! sudo grep -q "$content_to_add" "$OSSEC_CONF_PATH"; then
sudo sed -i '' -e "/<\/ossec_config>/i\\
<!-- snort -->\\
<localfile>\\
Expand Down

0 comments on commit fb841b0

Please sign in to comment.