From 443dc6ebaa7e0dc08b71526ffa471d8e6b33b64b Mon Sep 17 00:00:00 2001 From: m0duspwnens Date: Wed, 12 Jan 2022 16:14:49 -0500 Subject: [PATCH] move branch echo to main so it is in the log --- salt/common/tools/sbin/soup | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/salt/common/tools/sbin/soup b/salt/common/tools/sbin/soup index d06a868b4..8e2a7d332 100755 --- a/salt/common/tools/sbin/soup +++ b/salt/common/tools/sbin/soup @@ -958,7 +958,18 @@ fix_wazuh() { main() { trap 'check_err $?' EXIT + if [ -n "$BRANCH" ]; then + echo "SOUP will use the $BRANCH branch." + echo "" + fi + echo "### Preparing soup at $(date) ###" + echo "" + + echo "Checking to see if this is a manager." + echo "" + require_manager + check_pillar_items echo "Checking to see if this is an airgap install." @@ -968,9 +979,7 @@ main() { echo "Missing file argument (-f ) for unattended airgap upgrade." exit 0 fi - echo "Checking to see if this is a manager." - echo "" - require_manager + set_minionid echo "Found that Security Onion $INSTALLEDVERSION is currently installed." echo "" @@ -1277,12 +1286,6 @@ https://blog.securityonion.net EOF - if [ -n "$BRANCH" ]; then - cat << EOF -SOUP will use the $BRANCH branch. - -EOF - fi cat << EOF Press Enter to continue or Ctrl-C to cancel. EOF