[fix] Only check for ZEEKVERSION on manager installs

This commit is contained in:
William Wernert
2021-01-29 15:36:50 -05:00
parent 194f480017
commit 7a3c7322fc

View File

@@ -459,7 +459,12 @@ if [[ $is_sensor && ! $is_eval ]]; then
collect_homenet_snsr
whiptail_sensor_config
if [ $NSMSETUP == 'ADVANCED' ]; then
[[ $ZEEKVERSION == "ZEEK" ]] && whiptail_zeek_pins
if [[ $is_manager ]]; then
[[ $ZEEKVERSION == "ZEEK" ]] && whiptail_zeek_pins
else
whiptail_zeek_pins
fi
whiptail_suricata_pins
collect_mtu
else
@@ -469,7 +474,13 @@ if [[ $is_sensor && ! $is_eval ]]; then
else
PROCS=$lb_procs
fi
[[ $ZEEKVERSION == "ZEEK" ]] && collect_zeek
if [[ $is_manager ]]; then
[[ $ZEEKVERSION == "ZEEK" ]] && collect_zeek
else
collect_zeek
fi
collect_suri
fi
fi