From 946cf81a27d6883b07a6a42cc55a5d24536791fe Mon Sep 17 00:00:00 2001 From: William Wernert Date: Tue, 12 Oct 2021 09:47:25 -0400 Subject: [PATCH] If ANALYST is selected immediately quit setup --- setup/so-setup | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/setup/so-setup b/setup/so-setup index 7d5ae0a0e..998bdbe05 100755 --- a/setup/so-setup +++ b/setup/so-setup @@ -256,7 +256,8 @@ elif [ "$install_type" = 'HELIXSENSOR' ]; then elif [ "$install_type" = 'IMPORT' ]; then is_import=true elif [ "$install_type" = 'ANALYST' ]; then - is_analyst=true + cd .. || exit 255 + exec bash so-analyst-install fi if [[ $is_manager || $is_import ]]; then @@ -337,11 +338,6 @@ if ! [[ -f $install_opt_file ]]; then exec bash /root/manager_setup/securityonion/setup/so-setup "${original_args[@]}" fi - if [[ $is_analyst ]]; then - cd .. || exit 255 - exec bash so-analyst-install - fi - else rm -rf $install_opt_file >> "$setup_log" 2>&1 fi