[fix] Only show analyst on network installs

Closes #1682
This commit is contained in:
William Wernert
2020-11-05 14:39:04 -05:00
parent 3abe8cb397
commit b528fe1a03

View File

@@ -635,12 +635,22 @@ whiptail_install_type_other() {
[ -n "$TESTING" ] && return [ -n "$TESTING" ] && return
install_type=$(whiptail --title "Security Onion Setup" --radiolist \ # so-analyst-install will only work with a working network connection
"Choose distributed node type:" 9 65 2 \ # so only show it on network installs for now
"ANALYST" "Quit setup and run so-analyst-install " ON \ if [[ $setup_type == 'network' ]]; then
"HELIXSENSOR" "Create a Helix sensor " OFF \ install_type=$(whiptail --title "Security Onion Setup" --radiolist \
3>&1 1>&2 2>&3 "Choose distributed node type:" 9 65 2 \
) "ANALYST" "Quit setup and run so-analyst-install " ON \
"HELIXSENSOR" "Create a Helix sensor " OFF \
3>&1 1>&2 2>&3
)
else
install_type=$(whiptail --title "Security Onion Setup" --radiolist \
"Choose distributed node type:" 8 65 1 \
"HELIXSENSOR" "Create a Helix sensor " ON \
3>&1 1>&2 2>&3
)
fi
local exitstatus=$? local exitstatus=$?
whiptail_check_exitstatus $exitstatus whiptail_check_exitstatus $exitstatus