From 8245b258350773b8aad2f53c7652a1fa9be77a48 Mon Sep 17 00:00:00 2001 From: William Wernert Date: Wed, 13 Jan 2021 17:28:19 -0500 Subject: [PATCH] [fix] Move metadata function --- setup/so-whiptail | 27 +++++++++++++-------------- 1 file changed, 13 insertions(+), 14 deletions(-) diff --git a/setup/so-whiptail b/setup/so-whiptail index ad9e42f28..365cb5c0d 100755 --- a/setup/so-whiptail +++ b/setup/so-whiptail @@ -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 -} -