Skip to content

Commit

Permalink
Sets permissions for /var directories properly if run on chef-server.…
Browse files Browse the repository at this point in the history
… This brings the fixes from COOK-985 into COOK-599 to fix both.

Signed-off-by: jtimberman <joshua@opscode.com>
  • Loading branch information
Miah Johnson authored and jtimberman committed Mar 22, 2012
1 parent c45ff78 commit 5c9bf4f
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions recipes/config.rb
Expand Up @@ -30,8 +30,13 @@
%w{run_path cache_path backup_path log_dir}.each do |key|
directory node['chef_client'][key] do
recursive true
owner "root"
group root_group
if node[:recipes].include?("chef-server")
owner "chef"
group "chef"
else
owner "root"
group root_group
end
mode 0755
end
end
Expand Down

0 comments on commit 5c9bf4f

Please sign in to comment.