Merge pull request #781 from Security-Onion-Solutions/feature/setup-allow

[feat] Add flag to run so-allow automatically post-setup
This commit is contained in:
William Wernert
2020-05-27 13:26:27 -04:00
committed by GitHub
3 changed files with 5 additions and 0 deletions

View File

@@ -34,6 +34,7 @@ HNMASTER=10.0.0.0/8,192.168.0.0/16,172.16.0.0/12
HNSENSOR=inherit HNSENSOR=inherit
HOSTNAME=standalone HOSTNAME=standalone
install_type=STANDALONE install_type=STANDALONE
IP=192.168.0.0/16
# LSINPUTBATCHCOUNT= # LSINPUTBATCHCOUNT=
# LSINPUTTHREADS= # LSINPUTTHREADS=
# LSPIPELINEBATCH= # LSPIPELINEBATCH=

View File

@@ -997,6 +997,9 @@ parse_options() {
export {https,ftp,rsync,all}_proxy="$http_proxy" export {https,ftp,rsync,all}_proxy="$http_proxy"
;; ;;
"--allow-analyst"|"--allow=a")
allow='a'
;;
*) *)
if [[ $1 = --* ]]; then if [[ $1 = --* ]]; then
echo "Invalid option" echo "Invalid option"

View File

@@ -540,6 +540,7 @@ fi
success=$(tail -10 $setup_log | grep Failed | awk '{ print $2}') success=$(tail -10 $setup_log | grep Failed | awk '{ print $2}')
if [[ "$success" = 0 ]]; then if [[ "$success" = 0 ]]; then
whiptail_setup_complete whiptail_setup_complete
if [[ -n $allow ]]; then so-allow -$allow; fi
if [[ $THEHIVE == 1 ]]; then if [[ $THEHIVE == 1 ]]; then
check_hive_init_then_reboot check_hive_init_then_reboot
else else