use cmd.run instead of cmd.script to resolve issue 64962

This commit is contained in:
m0duspwnens
2025-01-09 16:16:59 -05:00
parent ecc5d64584
commit 574d2994d1
2 changed files with 12 additions and 5 deletions

View File

@@ -2,10 +2,17 @@ python3_lief:
pkg.installed:
- name: securityonion-python3-lief
so-fix-salt-ldap_script:
file.managed:
- name: /usr/sbin/so-fix-salt-ldap.py
- source: salt://libvirt/64962/scripts/so-fix-salt-ldap.py
- mode: 744
fix-salt-ldap:
cmd.script:
- source: salt://libvirt/64962/scripts/fix-salt-ldap.py
cmd.run:
- name: /usr/sbin/so-fix-salt-ldap.py
- require:
- pkg: python3_lief
- file: so-fix-salt-ldap_script
- onchanges:
- pkg: python3_lief
- file: so-fix-salt-ldap_script