Skip to content

Commit

Permalink
Make sure nagios can write to the results dir
Browse files Browse the repository at this point in the history
Signed-off-by: Tim Smith <tsmith@chef.io>
  • Loading branch information
tas50 committed Jan 26, 2017
1 parent 1c157bd commit 4ab9b5e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions recipes/server_source.rb
Expand Up @@ -50,7 +50,7 @@
group node['nagios']['group'] do
members [
node['nagios']['user'],
web_srv == 'nginx' ? node['nginx']['user'] : node['apache']['user']
web_srv == 'nginx' ? node['nginx']['user'] : node['apache']['user'],
]
action :create
end
Expand Down Expand Up @@ -132,8 +132,8 @@
end

directory node['nagios']['conf']['check_result_path'] do
owner 'root'
group 'root'
owner node['nagios']['user']
group node['nagios']['group']
mode '0755'
recursive true
end
Expand Down

0 comments on commit 4ab9b5e

Please sign in to comment.