From 8036df4b203d2998f26201a69acdb9c786ba165f Mon Sep 17 00:00:00 2001 From: Jason Ertel Date: Wed, 2 Aug 2023 15:10:31 -0400 Subject: [PATCH] ensure suri rules are synced for import installs --- setup/so-setup | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/setup/so-setup b/setup/so-setup index 20a1168c9..ccc9f6f2f 100755 --- a/setup/so-setup +++ b/setup/so-setup @@ -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