mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-18 15:02:50 +01:00
Remove idstools config from manager pillar file
This commit is contained in:
@@ -1299,8 +1299,10 @@ rm /opt/so/saltstack/local/salt/suricata/rules
|
|||||||
rm -rf /usr/sbin/so-idstools*
|
rm -rf /usr/sbin/so-idstools*
|
||||||
sed -i '/^#\?so-idstools$/d' /opt/so/conf/so-status/so-status.conf
|
sed -i '/^#\?so-idstools$/d' /opt/so/conf/so-status/so-status.conf
|
||||||
|
|
||||||
# Backup the salt master config before editing it
|
# Backup the salt master config & manager pillar before editing it
|
||||||
cp /etc/salt/master /nsm/backup/detections-migration/2-4-200
|
cp /opt/so/saltstack/local/pillar/minions/$MINIONID.sls /nsm/backup/detections-migration/2-4-200/
|
||||||
|
cp /etc/salt/master /nsm/backup/detections-migration/2-4-200/
|
||||||
|
so-yaml.py remove /opt/so/saltstack/local/pillar/minions/$MINIONID.sls idstools
|
||||||
so-yaml.py removelistitem /etc/salt/master file_roots.base /opt/so/rules/nids
|
so-yaml.py removelistitem /etc/salt/master file_roots.base /opt/so/rules/nids
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user