[fix] Move metadata function

This commit is contained in:
William Wernert
2021-01-13 17:28:19 -05:00
parent 90f085b2d7
commit 8245b25835

View File

@@ -931,6 +931,19 @@ whiptail_manager_updates_warning() {
whiptail_check_exitstatus $exitstatus
}
whiptail_metadata_tool() {
[ -n "$TESTING" ] && return
# Legacy variable naming
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)
local exitstatus=$?
whiptail_check_exitstatus $exitstatus
}
whiptail_nids() {
[ -n "$TESTING" ] && return
@@ -1484,17 +1497,3 @@ whiptail_zeek_pins() {
IFS=' ' read -ra ZEEKPINS <<< "$ZEEKPINS"
}
whiptail_metadata_tool() {
[ -n "$TESTING" ] && return
# Legacy variable naming
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)
local exitstatus=$?
whiptail_check_exitstatus $exitstatus
}