mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 17:22:49 +01:00
[refactor] Rename MD tool function to be more clear
This commit is contained in:
@@ -65,18 +65,6 @@ whiptail_basic_zeek() {
|
|||||||
whiptail_check_exitstatus $exitstatus
|
whiptail_check_exitstatus $exitstatus
|
||||||
}
|
}
|
||||||
|
|
||||||
whiptail_zeek_version() {
|
|
||||||
|
|
||||||
[ -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 \
|
|
||||||
"SURICATA" "Suricata" OFF 3>&1 1>&2 2>&3)
|
|
||||||
|
|
||||||
local exitstatus=$?
|
|
||||||
whiptail_check_exitstatus $exitstatus
|
|
||||||
}
|
|
||||||
|
|
||||||
whiptail_bond_nics_mtu() {
|
whiptail_bond_nics_mtu() {
|
||||||
|
|
||||||
[ -n "$TESTING" ] && return
|
[ -n "$TESTING" ] && return
|
||||||
@@ -500,6 +488,8 @@ whiptail_helix_apikey() {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#TODO: Combine these two functions
|
||||||
|
|
||||||
whiptail_homenet_manager() {
|
whiptail_homenet_manager() {
|
||||||
|
|
||||||
[ -n "$TESTING" ] && return
|
[ -n "$TESTING" ] && return
|
||||||
@@ -1572,14 +1562,16 @@ whiptail_zeek_pins() {
|
|||||||
IFS=' ' read -ra ZEEKPINS <<< "$ZEEKPINS"
|
IFS=' ' read -ra ZEEKPINS <<< "$ZEEKPINS"
|
||||||
}
|
}
|
||||||
|
|
||||||
whiptail_zeek_version() {
|
whiptail_metadata_tool() {
|
||||||
|
|
||||||
[ -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 \
|
# 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)
|
"SURICATA" "Suricata" OFF 3>&1 1>&2 2>&3)
|
||||||
|
|
||||||
local exitstatus=$?
|
local exitstatus=$?
|
||||||
whiptail_check_exitstatus $exitstatus
|
whiptail_check_exitstatus $exitstatus
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user