Merge pull request #10925 from Security-Onion-Solutions/jertel/fiximportsuri

ensure suri rules are synced for import installs
This commit is contained in:
Jason Ertel
2023-08-02 15:13:59 -04:00
committed by GitHub

View File

@@ -695,9 +695,11 @@ if ! [[ -f $install_opt_file ]]; then
logCmd "so-rule-update"
title "Downloading YARA rules"
logCmd "su socore -c '/usr/sbin/so-yara-download'"
if [[ $monints ]]; then
if [[ $monints || $is_import ]]; then
title "Restarting Suricata to pick up the new rules"
logCmd "so-suricata-restart"
fi
if [[ $monints ]]; then
title "Restarting Strelka to use new rules"
logCmd "so-strelka-restart"
fi