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