[feat] Run so-analyst-install after network init

This commit is contained in:
William Wernert
2020-12-08 15:29:31 -05:00
parent b41ba1ea3c
commit 813fe77582

View File

@@ -204,9 +204,7 @@ elif [ "$install_type" = 'HELIXSENSOR' ]; then
elif [ "$install_type" = 'IMPORT' ]; then elif [ "$install_type" = 'IMPORT' ]; then
is_import=true is_import=true
elif [ "$install_type" = 'ANALYST' ]; then elif [ "$install_type" = 'ANALYST' ]; then
cd .. || exit 255 is_analyst=true
./so-analyst-install
exit 0
fi fi
# Say yes to the dress if its an ISO install # 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 "$@" exec bash /root/manager_setup/securityonion/setup/so-setup "$@"
fi fi
if [[ $is_analyst ]]; then
cd .. || exit 255
exec bash so-analyst-install
fi
else else
rm -rf /root/install_opt >> "$setup_log" 2>&1 rm -rf /root/install_opt >> "$setup_log" 2>&1
fi fi