mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 17:22:49 +01:00
Fix Analyst Install Loop
This commit is contained in:
@@ -351,7 +351,9 @@ elif [ "$install_type" = 'RECEIVER' ]; then
|
||||
is_minion=true
|
||||
is_receiver=true
|
||||
elif [ "$install_type" = 'ANALYST' ]; then
|
||||
exec bash so-setup analyst
|
||||
if [ "$setup_type" != 'analyst' ]; then
|
||||
exec bash so-setup analyst
|
||||
fi
|
||||
fi
|
||||
|
||||
if [[ $is_manager || $is_import ]]; then
|
||||
|
||||
@@ -934,21 +934,13 @@ whiptail_install_type_other() {
|
||||
|
||||
# so-analyst-install will only work with a working network connection
|
||||
# so only show it on network installs for now
|
||||
if [[ $setup_type == 'network' ]]; then
|
||||
install_type=$(whiptail --title "$whiptail_title" --radiolist \
|
||||
install_type=$(whiptail --title "$whiptail_title" --radiolist \
|
||||
"Choose node type:" 9 65 2 \
|
||||
"ANALYST" "Setup will run 'so-setup analyst' " ON \
|
||||
"HELIXSENSOR" "Create a Helix sensor " OFF \
|
||||
3>&1 1>&2 2>&3
|
||||
"ANALYST" "Setup will run 'so-setup analyst' " ON \
|
||||
"HELIXSENSOR" "Create a Helix sensor " OFF \
|
||||
3>&1 1>&2 2>&3
|
||||
)
|
||||
else
|
||||
install_type=$(whiptail --title "$whiptail_title" --radiolist \
|
||||
"Choose node type:" 8 65 1 \
|
||||
"HELIXSENSOR" "Create a Helix sensor " ON \
|
||||
3>&1 1>&2 2>&3
|
||||
)
|
||||
fi
|
||||
|
||||
|
||||
local exitstatus=$?
|
||||
whiptail_check_exitstatus $exitstatus
|
||||
|
||||
|
||||
Reference in New Issue
Block a user