From f6b9dec2ae9994e4deabf8d2e2445bb78182b360 Mon Sep 17 00:00:00 2001 From: Mike Reeves Date: Wed, 2 Aug 2023 09:45:29 -0400 Subject: [PATCH] Add supersoup mode --- salt/common/tools/sbin/soup | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/salt/common/tools/sbin/soup b/salt/common/tools/sbin/soup index 20d5e56e3..a5b047bf9 100755 --- a/salt/common/tools/sbin/soup +++ b/salt/common/tools/sbin/soup @@ -17,9 +17,24 @@ . /usr/sbin/so-common +INSTALLEDVERSION=$(cat /etc/soversion) + +if [[ $INSTALLEDSALTVERSION == "2.4.4" ]]; then + + echo "Initiating supersoup mode" + mkdir -p /tmp/supersoup + cd /tmp/supersoup + echo "No Capes!" + wget https://raw.githubusercontent.com/Security-Onion-Solutions/securityonion/2.4/dev/salt/manager/tools/sbin/soup + cp soup /opt/so/saltstack/ + salt-call state.apply manager --queue=true + echo "Please run soup a second time." + + exit 0 +fi + UPDATE_DIR=/tmp/sogh/securityonion DEFAULT_SALT_DIR=/opt/so/saltstack/default -INSTALLEDVERSION=$(cat /etc/soversion) POSTVERSION=$INSTALLEDVERSION INSTALLEDSALTVERSION=$(salt --versions-report | grep Salt: | awk '{print $2}') BATCHSIZE=5