From 0c553633b1f066bfb92e7edd3a66648a61cf355e Mon Sep 17 00:00:00 2001 From: Mike Reeves Date: Thu, 27 Jul 2023 16:16:46 -0400 Subject: [PATCH] Don't restart suricata if it doesn't exist --- setup/so-setup | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/setup/so-setup b/setup/so-setup index 47b9416ea..d752bc113 100755 --- a/setup/so-setup +++ b/setup/so-setup @@ -687,12 +687,14 @@ if ! [[ -f $install_opt_file ]]; then if [[ ! $is_airgap ]]; then title "Downloading IDS Rules" logCmd "so-rule-update" - title "Restarting Suricata to pick up the new rules" - logCmd "so-suricata-restart" title "Downloading YARA rules" logCmd "su socore -c '/usr/sbin/so-yara-download'" - title "Restarting Strelka to use new rules" - logCmd "so-strelka-restart" + if [[ $monints ]]; then + title "Restarting Suricata to pick up the new rules" + logCmd "so-suricata-restart" + title "Restarting Strelka to use new rules" + logCmd "so-strelka-restart" + fi fi title "Setting up Kibana Default Space" logCmd "so-kibana-space-defaults"