Skip to content

Commit

Permalink
Refactor Snort installation script for Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
bengo237 committed Sep 12, 2024
1 parent c799369 commit f5bc8ba
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -164,8 +164,7 @@ install_snort_linux() {
fi

start_snort_linux

success_message "Snort installed successfully"

}

# Function to configure Snort logging on macOS
Expand Down Expand Up @@ -258,8 +257,9 @@ update_ossec_conf_linux() {
start_snort_linux() {
info_message "Restarting Snort"
maybe_sudo systemctl restart snort
maybe_sudo snort -q -c /etc/snort/snort.conf -l /var/log/snort -A fast &
success_message "Snort started on Linux"
maybe_sudo snort -q -c /etc/snort/snort.conf -l /var/log/snort -A fast &

}

# Function to ensure the script runs with appropriate privileges
Expand Down

0 comments on commit f5bc8ba

Please sign in to comment.