move suricata rules to /opt/so/rules/nids/suri

This commit is contained in:
m0duspwnens committed 2024-02-09 09:47:23 -05:00
1 parent f02f61c6dd
commit 5903ae596c
7 files changed
+16 -14

No files matched your search

+3 -1
View File
@@ -605,7 +605,9 @@ up_to_2.4.50() {
# post upgrade changes. POSTVERSION set to INSTALLEDVERSION at start of soup
cp -v /etc/salt/master "/etc/salt/master.so-$POSTVERSION.bak"
echo "Adding /opt/so/rules to file_roots in /etc/salt/master using so-yaml"
so-yaml.py append /etc/salt/master file_roots.base /opt/so/rules
so-yaml.py append /etc/salt/master file_roots.base /opt/so/rules/nids
echo "Moving Suricata rules"
mv -v /opt/so/rules/nids/* /opt/so/rules/nids/suri/.
INSTALLEDVERSION=2.4.50
}