mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 17:22:49 +01:00
[fix] Add condition to zeek state during setup for ZEEKVERSION
Fixes #1990
This commit is contained in:
@@ -639,12 +639,14 @@ fi
|
|||||||
salt-call state.apply -l info pcap >> $setup_log 2>&1
|
salt-call state.apply -l info pcap >> $setup_log 2>&1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ $is_sensor || $is_import ]]; then
|
if [[ $is_sensor || $is_import || $is_helix ]]; then
|
||||||
set_progress_str 66 "$(print_salt_state_apply 'suricata')"
|
set_progress_str 66 "$(print_salt_state_apply 'suricata')"
|
||||||
salt-call state.apply -l info suricata >> $setup_log 2>&1
|
salt-call state.apply -l info suricata >> $setup_log 2>&1
|
||||||
|
|
||||||
set_progress_str 67 "$(print_salt_state_apply 'zeek')"
|
if [[ $ZEEKVERSION == 'ZEEK' ]]; then
|
||||||
salt-call state.apply -l info zeek >> $setup_log 2>&1
|
set_progress_str 67 "$(print_salt_state_apply 'zeek')"
|
||||||
|
salt-call state.apply -l info zeek >> $setup_log 2>&1
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ $is_node ]]; then
|
if [[ $is_node ]]; then
|
||||||
|
|||||||
@@ -97,7 +97,8 @@ whiptail_zeek_version() {
|
|||||||
|
|
||||||
[ -n "$TESTING" ] && return
|
[ -n "$TESTING" ] && return
|
||||||
|
|
||||||
ZEEKVERSION=$(whiptail --title "Security Onion Setup" --radiolist "What tool would you like to use to generate metadata?" 20 75 4 "ZEEK" "Zeek (formerly known as Bro)" ON \
|
ZEEKVERSION=$(whiptail --title "Security Onion Setup" --radiolist "What tool would you like to use to generate metadata?" 20 75 4 \
|
||||||
|
"ZEEK" "Zeek (formerly known as Bro)" ON \
|
||||||
"SURICATA" "Suricata" OFF 3>&1 1>&2 2>&3)
|
"SURICATA" "Suricata" OFF 3>&1 1>&2 2>&3)
|
||||||
|
|
||||||
local exitstatus=$?
|
local exitstatus=$?
|
||||||
|
|||||||
Reference in New Issue
Block a user