Compare commits

..

6 Commits

Author SHA1 Message Date
Mike Reeves
4afd186ec7 Merge pull request #15714 from Security-Onion-Solutions/soupfix2
Fix soup for 3.X.X installations
2026-04-01 17:20:37 -04:00
Mike Reeves
3f27d00dd1 Fix soup_scripts.sls to handle 3.X versions instead of falling back to 2.3 2026-04-01 16:12:07 -04:00
Mike Reeves
f2d6d8a3fe Fetch and replace soup scripts from 3/main before proceeding on 3.X.X 2026-04-01 15:43:21 -04:00
Mike Reeves
1355e8eb11 Re-exec soup with 3/main branch when running on 3.X.X 2026-04-01 15:27:24 -04:00
Mike Reeves
472769452c Default soup to 3/main branch for 3.X.X installations 2026-04-01 15:22:37 -04:00
Mike Reeves
89e470059e Merge pull request #15597 from Security-Onion-Solutions/2.4.211
2.4.211
2026-03-12 13:18:19 -04:00
2 changed files with 22 additions and 1 deletions

View File

@@ -3,7 +3,8 @@
# https://securityonion.net/license; you may not use this file except in compliance with the
# Elastic License 2.0.
{% if '2.4' in salt['cp.get_file_str']('/etc/soversion') %}
{% set soversion = salt['cp.get_file_str']('/etc/soversion') %}
{% if '2.4' in soversion or soversion.startswith('3.') %}
{% import_yaml '/opt/so/saltstack/local/pillar/global/soc_global.sls' as SOC_GLOBAL %}
{% if SOC_GLOBAL.global.airgap %}

View File

@@ -2128,6 +2128,26 @@ failed_soup_restore_items() {
main() {
trap 'check_err $?' EXIT
# If running 3.X.X, we need to fetch the correct soup and supporting scripts
# from the 3/main branch before proceeding, otherwise we'll clone 2.4/main
# and end up with incompatible scripts.
if [[ "$INSTALLEDVERSION" == 3.* && "$BRANCH" != "3/main" ]]; then
echo "Detected Security Onion $INSTALLEDVERSION. Fetching soup from 3/main branch."
rm -rf /tmp/sogh
mkdir -p /tmp/sogh
cd /tmp/sogh
git clone -b 3/main https://github.com/Security-Onion-Solutions/securityonion.git
if [ ! -f "$UPDATE_DIR/VERSION" ]; then
echo "Unable to clone 3/main branch from Github. Please check your Internet access."
exit 1
fi
cp "$UPDATE_DIR/salt/manager/tools/sbin/soup" /usr/sbin/soup
cp "$UPDATE_DIR/salt/common/tools/sbin/so-common" /usr/sbin/so-common
cp "$UPDATE_DIR/salt/common/tools/sbin/so-image-common" /usr/sbin/so-image-common
echo "Updated soup scripts from 3/main. Restarting soup."
exec env BRANCH=3/main soup "$@"
fi
if [ -n "$BRANCH" ]; then
echo "SOUP will use the $BRANCH branch."
echo ""