From fb841b0bbdbc789107251028fa7d5e99babb8778 Mon Sep 17 00:00:00 2001 From: Dylane Bengono Date: Wed, 11 Sep 2024 15:49:16 +0100 Subject: [PATCH] chore: Update Snort installation script for macOS --- scripts/install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/install.sh b/scripts/install.sh index e340418..66855ce 100755 --- a/scripts/install.sh +++ b/scripts/install.sh @@ -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\\ \\ \\