Clear salt fileserver cache to ensure the new local.rules file gets picked up on the filesync

This commit is contained in:
Jason Ertel
2021-02-19 11:13:31 -05:00
parent faa78c0e26
commit 9302b9302b

View File

@@ -891,6 +891,7 @@ create_local_nids_rules() {
# Create a local.rules file so it doesn't get blasted on updates # Create a local.rules file so it doesn't get blasted on updates
mkdir -p /opt/so/saltstack/local/salt/idstools mkdir -p /opt/so/saltstack/local/salt/idstools
echo "# Custom Suricata rules go in this file" > /opt/so/saltstack/local/salt/idstools/local.rules echo "# Custom Suricata rules go in this file" > /opt/so/saltstack/local/salt/idstools/local.rules
salt-run fileserver.clear_file_list_cache
} }
create_repo() { create_repo() {