mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 17:22:49 +01:00
remove influxdb module patched state files when salt is upgraded
This commit is contained in:
@@ -744,9 +744,6 @@ up_to_2.3.90() {
|
|||||||
up_to_2.3.100() {
|
up_to_2.3.100() {
|
||||||
fix_wazuh
|
fix_wazuh
|
||||||
|
|
||||||
echo "Removing /opt/so/state files for patched Salt InfluxDB module and state. This is due to Salt being upgraded and needing to patch the files again."
|
|
||||||
rm -vrf /opt/so/state/influxdb_continuous_query.py.patched /opt/so/state/influxdb_retention_policy.py.patched /opt/so/state/influxdbmod.py.patched
|
|
||||||
|
|
||||||
echo "Adding receiver hostgroup with so-firewall"
|
echo "Adding receiver hostgroup with so-firewall"
|
||||||
if so-firewall addhostgroup receiver 2>&1 | grep -q 'Already exists'; then
|
if so-firewall addhostgroup receiver 2>&1 | grep -q 'Already exists'; then
|
||||||
echo 'receiver hostgroup already exists'
|
echo 'receiver hostgroup already exists'
|
||||||
@@ -906,6 +903,8 @@ upgrade_salt() {
|
|||||||
else
|
else
|
||||||
echo "Salt upgrade success."
|
echo "Salt upgrade success."
|
||||||
echo ""
|
echo ""
|
||||||
|
echo "Removing /opt/so/state files for patched Salt InfluxDB module and state. This is due to Salt being upgraded and needing to patch the files again."
|
||||||
|
rm -vrf /opt/so/state/influxdb_continuous_query.py.patched /opt/so/state/influxdb_retention_policy.py.patched /opt/so/state/influxdbmod.py.patched
|
||||||
fi
|
fi
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user