Merge pull request #6796 from Security-Onion-Solutions/fix/wazuh_register_agent

dont try to register if state file exists
This commit is contained in:
Josh Patterson
2022-01-07 16:07:56 -05:00
committed by GitHub

View File

@@ -127,7 +127,7 @@ registertheagent:
cmd.run:
- name: /usr/sbin/wazuh-register-agent
- cwd: /
#- stateful: True
- unless: ls /opt/so/conf/wazuh/initial_agent_registration.log
# Whitelist manager IP
whitelistmanager: