mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 01:02:46 +01:00
Add supersoup mode
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user