mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 17:22:49 +01:00
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:
@@ -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=
|
||||||
|
|||||||
@@ -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"
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user