mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 17:22:49 +01:00
[feat] Add flag to run so-allow automatically post-setup
This commit is contained in:
@@ -34,6 +34,7 @@ HNMASTER=10.0.0.0/8,192.168.0.0/16,172.16.0.0/12
|
||||
HNSENSOR=inherit
|
||||
HOSTNAME=standalone
|
||||
install_type=STANDALONE
|
||||
IP=192.168.0.0/16
|
||||
# LSINPUTBATCHCOUNT=
|
||||
# LSINPUTTHREADS=
|
||||
# LSPIPELINEBATCH=
|
||||
|
||||
@@ -997,6 +997,9 @@ parse_options() {
|
||||
|
||||
export {https,ftp,rsync,all}_proxy="$http_proxy"
|
||||
;;
|
||||
"--allow-analyst"|"--allow=a")
|
||||
allow='a'
|
||||
;;
|
||||
*)
|
||||
if [[ $1 = --* ]]; then
|
||||
echo "Invalid option"
|
||||
|
||||
@@ -540,6 +540,7 @@ fi
|
||||
success=$(tail -10 $setup_log | grep Failed | awk '{ print $2}')
|
||||
if [[ "$success" = 0 ]]; then
|
||||
whiptail_setup_complete
|
||||
if [[ -n $allow ]]; then so-allow -$allow; fi
|
||||
if [[ $THEHIVE == 1 ]]; then
|
||||
check_hive_init_then_reboot
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user