mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-07 01:32:47 +01:00
Merge pull request #8246 from Security-Onion-Solutions/TOoSmOotH-patch-2
Update soup
This commit is contained in:
@@ -456,6 +456,7 @@ postupgrade_changes() {
|
|||||||
[[ "$POSTVERSION" == 2.3.100 ]] && post_to_2.3.110
|
[[ "$POSTVERSION" == 2.3.100 ]] && post_to_2.3.110
|
||||||
[[ "$POSTVERSION" == 2.3.110 ]] && post_to_2.3.120
|
[[ "$POSTVERSION" == 2.3.110 ]] && post_to_2.3.120
|
||||||
[[ "$POSTVERSION" == 2.3.120 ]] && post_to_2.3.130
|
[[ "$POSTVERSION" == 2.3.120 ]] && post_to_2.3.130
|
||||||
|
[[ "$POSTVERSION" == 2.3.130 ]] && post_to_2.3.140
|
||||||
|
|
||||||
|
|
||||||
true
|
true
|
||||||
@@ -532,6 +533,11 @@ post_to_2.3.130() {
|
|||||||
POSTVERSION=2.3.130
|
POSTVERSION=2.3.130
|
||||||
}
|
}
|
||||||
|
|
||||||
|
post_to_2.3.140() {
|
||||||
|
echo "Post Processing for 2.3.140"
|
||||||
|
POSTVERSION=2.3.140
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
stop_salt_master() {
|
stop_salt_master() {
|
||||||
@@ -779,10 +785,13 @@ up_to_2.3.100() {
|
|||||||
|
|
||||||
echo "Adding receiver to assigned_hostgroups.local.map.yaml"
|
echo "Adding receiver to assigned_hostgroups.local.map.yaml"
|
||||||
grep -qxF " receiver:" /opt/so/saltstack/local/salt/firewall/assigned_hostgroups.local.map.yaml || sed -i -e '$a\ receiver:' /opt/so/saltstack/local/salt/firewall/assigned_hostgroups.local.map.yaml
|
grep -qxF " receiver:" /opt/so/saltstack/local/salt/firewall/assigned_hostgroups.local.map.yaml || sed -i -e '$a\ receiver:' /opt/so/saltstack/local/salt/firewall/assigned_hostgroups.local.map.yaml
|
||||||
|
|
||||||
|
INSTALLEDVERSION=2.3.100
|
||||||
}
|
}
|
||||||
|
|
||||||
up_to_2.3.110() {
|
up_to_2.3.110() {
|
||||||
sed -i 's|shards|index_template:\n template:\n settings:\n index:\n number_of_shards|g' /opt/so/saltstack/local/pillar/global.sls
|
sed -i 's|shards|index_template:\n template:\n settings:\n index:\n number_of_shards|g' /opt/so/saltstack/local/pillar/global.sls
|
||||||
|
INSTALLEDVERSION=2.3.110
|
||||||
}
|
}
|
||||||
|
|
||||||
up_to_2.3.120() {
|
up_to_2.3.120() {
|
||||||
@@ -790,11 +799,13 @@ up_to_2.3.120() {
|
|||||||
so-thehive-stop
|
so-thehive-stop
|
||||||
so-thehive-es-stop
|
so-thehive-es-stop
|
||||||
so-cortex-stop
|
so-cortex-stop
|
||||||
|
INSTALLEDVERSION=2.3.120
|
||||||
}
|
}
|
||||||
|
|
||||||
up_to_2.3.130() {
|
up_to_2.3.130() {
|
||||||
# Remove file for nav update
|
# Remove file for nav update
|
||||||
rm -f /opt/so/conf/navigator/layers/nav_layer_playbook.json
|
rm -f /opt/so/conf/navigator/layers/nav_layer_playbook.json
|
||||||
|
INSTALLEDVERSION=2.3.130
|
||||||
}
|
}
|
||||||
|
|
||||||
up_to_2.3.140() {
|
up_to_2.3.140() {
|
||||||
@@ -826,6 +837,7 @@ up_to_2.3.140() {
|
|||||||
# Delete Elastalert indices
|
# Delete Elastalert indices
|
||||||
for i in $(so-elasticsearch-query _cat/indices | grep elastalert | awk '{print $3}'); do so-elasticsearch-query $i -XDELETE; done
|
for i in $(so-elasticsearch-query _cat/indices | grep elastalert | awk '{print $3}'); do so-elasticsearch-query $i -XDELETE; done
|
||||||
##
|
##
|
||||||
|
INSTALLEDVERSION=2.3.140
|
||||||
}
|
}
|
||||||
|
|
||||||
verify_upgradespace() {
|
verify_upgradespace() {
|
||||||
|
|||||||
Reference in New Issue
Block a user