From 813fe77582e98c56d3d4d41f801eb43861995f09 Mon Sep 17 00:00:00 2001 From: William Wernert Date: Tue, 8 Dec 2020 15:29:31 -0500 Subject: [PATCH] [feat] Run so-analyst-install after network init --- setup/so-setup | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/setup/so-setup b/setup/so-setup index 8ea110e96..17118800a 100755 --- a/setup/so-setup +++ b/setup/so-setup @@ -204,9 +204,7 @@ elif [ "$install_type" = 'HELIXSENSOR' ]; then elif [ "$install_type" = 'IMPORT' ]; then is_import=true elif [ "$install_type" = 'ANALYST' ]; then - cd .. || exit 255 - ./so-analyst-install - exit 0 + is_analyst=true fi # Say yes to the dress if its an ISO install @@ -280,6 +278,11 @@ if ! [ -f /root/install_opt ]; then exec bash /root/manager_setup/securityonion/setup/so-setup "$@" fi + if [[ $is_analyst ]]; then + cd .. || exit 255 + exec bash so-analyst-install + fi + else rm -rf /root/install_opt >> "$setup_log" 2>&1 fi