Skip to content
This repository has been archived by the owner on Apr 19, 2021. It is now read-only.

Commit

Permalink
skip sosetup-network when passing from sosetup to sosetup-elastic
Browse files Browse the repository at this point in the history
  • Loading branch information
dougburks committed Aug 29, 2017
1 parent b7463d1 commit 0c69b0e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion bin/sosetup
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ if [ $? = 1 ]; then
fi
[ "$SETUP" == "" ] && exit
if [ "$SETUP" == "Experimental Setup" ]; then
/usr/sbin/sosetup-elastic
/usr/sbin/sosetup-elastic skipnetwork
exit $?
fi

Expand Down
12 changes: 7 additions & 5 deletions bin/sosetup-elastic
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,8 @@ HR_MEM=$((TOTAL_MEM / 1000))
MEM_TEXT="This machine currently has "$HR_MEM"GB of RAM allocated.\n\For best performance, please ensure the machine is allocated at least 3GB of RAM.\n\n\Please consult the following link for more information:\n\https://github.com/Security-Onion-Solutions/security-onion/wiki/Hardware\n\n\
Click 'No' to stop setup and adjust the amount of RAM allocated to this machine.\n\
Otherwise, click 'Yes' to continue."
ARGS=("$@")

#########################################
# Debug
#########################################
Expand Down Expand Up @@ -196,11 +198,11 @@ fi
#########################################
# sosetup-network
#########################################
if [ -z "$WRITEANSWERFILE" ]; then # Network config not yet supported when generating an answer file
[ -f /usr/sbin/sosetup-network ] && /usr/sbin/sosetup-network
ANSWER="$?"
# If there were errors in sosetup-network, then exit
[ $ANSWER -eq 1 ] && exit
# Network config not yet supported when generating an answer file
if [ -z "$WRITEANSWERFILE" ] && [ "${ARGS[0]}" != "skipnetwork" ] && [ -f /usr/sbin/sosetup-network ]; then
/usr/sbin/sosetup-network
# If there were errors in sosetup-network, then exit
[ $? -eq 1 ] && exit
fi

#########################################
Expand Down

0 comments on commit 0c69b0e

Please sign in to comment.