run so-yara-download/update if scripts change

This commit is contained in:
m0duspwnens
2023-07-11 13:48:26 -04:00
parent 8acc37a7d1
commit da27fce95f

View File

@@ -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 %}