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 67adb10 commit 5edea25
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions scripts/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -151,9 +151,9 @@ configure_snort_logging_macos() {
update_ossec_conf_macos() {
local content_to_add="<!-- snort -->
<localfile>
<log_format>snort-full<\/log_format>
<location>\/var\/log\/snort\/alert_fast.txt<\/location>
<\/localfile>"
<log_format>snort-full</log_format>
<location>/var/log/snort/alert_fast.txt</location>
</localfile>"

info_message "Updating $OSSEC_CONF_PATH"
if ! grep -q "$content_to_add" "$OSSEC_CONF_PATH"; then
Expand All @@ -165,6 +165,7 @@ update_ossec_conf_macos() {
fi
}


# Function to start Snort on macOS
start_snort_macos() {
info_message "Starting Snort"
Expand Down

0 comments on commit 5edea25

Please sign in to comment.