Skip to content

Commit

Permalink
Fix system probe recipe on Windows (#850)
Browse files Browse the repository at this point in the history
  • Loading branch information
julien-lebot authored Jun 14, 2022
1 parent 60c3663 commit 3fc4210
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions recipes/system-probe.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
else
node['datadog']['system_probe']['enabled'] || node['datadog']['system_probe']['network_enabled'] || cws_enabled
end
sysprobe_agent_start = sysprobe_enabled ? :start : :stop
sysprobe_agent_start = sysprobe_enabled && node['datadog']['agent_start'] && node['datadog']['agent_enable'] ? :start : :stop

#
# Configures system-probe agent
Expand Down Expand Up @@ -68,11 +68,7 @@
runtime_security_extra_config: runtime_security_extra_config
)

if is_windows
owner 'Administrators'
rights :full_control, 'Administrators'
inherits false
else
unless is_windows
owner 'root'
group 'dd-agent'
mode '640'
Expand Down

0 comments on commit 3fc4210

Please sign in to comment.