[fix] Only show Zeek prompts if Zeek was selected as the MD tool

Resolves #900
This commit is contained in:
William Wernert
2021-01-07 10:37:25 -05:00
parent c1e32ed680
commit 1ec45fb4ae

View File

@@ -392,10 +392,11 @@ if [[ $is_manager && ! $is_eval ]]; then
whiptail_manager_adv_escluster whiptail_manager_adv_escluster
fi fi
fi fi
whiptail_metadata_tool whiptail_metadata_tool
if [ "$MANAGERADV" = 'ADVANCED' ] && [ "$ZEEKVERSION" != 'SURICATA' ]; then
whiptail_manager_adv_service_zeeklogs [[ $MANAGERADV == "ADVANCED" ]] && [[ $ZEEKVERSION == "ZEEK" ]] && whiptail_manager_adv_service_zeeklogs
fi
# Don't run this function for now since Snort is not yet supported # Don't run this function for now since Snort is not yet supported
# whiptail_nids # whiptail_nids
NIDS=Suricata NIDS=Suricata
@@ -441,11 +442,11 @@ if [[ $is_sensor && ! $is_eval ]]; then
whiptail_homenet_sensor whiptail_homenet_sensor
whiptail_sensor_config whiptail_sensor_config
if [ $NSMSETUP == 'ADVANCED' ]; then if [ $NSMSETUP == 'ADVANCED' ]; then
whiptail_zeek_pins [[ $ZEEKVERSION == "ZEEK" ]] && whiptail_zeek_pins
whiptail_suricata_pins whiptail_suricata_pins
whiptail_bond_nics_mtu whiptail_bond_nics_mtu
else else
whiptail_basic_zeek [[ $ZEEKVERSION == "ZEEK" ]] && whiptail_basic_zeek
whiptail_basic_suri whiptail_basic_suri
fi fi
fi fi