Don't restart suricata if it doesn't exist

This commit is contained in:
Mike Reeves
2023-07-27 16:16:46 -04:00
committed by GitHub
parent f9850025ea
commit 0c553633b1

View File

@@ -687,13 +687,15 @@ 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'"
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"
add_web_user