From a0b65c7fcbc214bc90af50d6446adbd95574b86e Mon Sep 17 00:00:00 2001 From: Ante Jurjevic Date: Fri, 11 Dec 2020 14:34:18 +0100 Subject: [PATCH] Add path to agent-auth-linux exec --- manifests/agent.pp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/manifests/agent.pp b/manifests/agent.pp index 977520d4..b8c1e4dc 100644 --- a/manifests/agent.pp +++ b/manifests/agent.pp @@ -559,7 +559,8 @@ exec { 'agent-auth-linux': command => $agent_auth_command, - unless => "/bin/egrep -q '.' ${::wazuh::params_agent::keys_file}", + path => ['/usr/bin', '/usr/sbin', '/bin'], + unless => "egrep -q '.' ${::wazuh::params_agent::keys_file}", require => Concat['agent_ossec.conf'], before => Service[$agent_service_name], notify => Service[$agent_service_name],