mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 17:22:49 +01:00
run so-yara-download/update if scripts change
This commit is contained in:
@@ -124,6 +124,12 @@ strelka-yara-update:
|
|||||||
- identifier: strelka-yara-update
|
- identifier: strelka-yara-update
|
||||||
- hour: '7'
|
- hour: '7'
|
||||||
- minute: '1'
|
- minute: '1'
|
||||||
|
|
||||||
|
update_yara_rules:
|
||||||
|
cmd.run:
|
||||||
|
- name: /usr/sbin/so-yara-update
|
||||||
|
- onchanges:
|
||||||
|
- file: yara_update_scripts
|
||||||
{% else %}
|
{% else %}
|
||||||
remove_strelka-yara-update:
|
remove_strelka-yara-update:
|
||||||
cron.absent:
|
cron.absent:
|
||||||
@@ -137,6 +143,12 @@ strelka-yara-download:
|
|||||||
- identifier: strelka-yara-download
|
- identifier: strelka-yara-download
|
||||||
- hour: '7'
|
- hour: '7'
|
||||||
- minute: '1'
|
- minute: '1'
|
||||||
|
|
||||||
|
download_yara_rules:
|
||||||
|
cmd.run:
|
||||||
|
- name: /usr/sbin/so-yara-download
|
||||||
|
- onchanges:
|
||||||
|
- file: yara_update_scripts
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user