Skip to content
This repository has been archived by the owner on Nov 23, 2017. It is now read-only.

Commit

Permalink
[COOK-827] - make sure both directories exist with correct perms afte…
Browse files Browse the repository at this point in the history
…r mv
  • Loading branch information
jtimberman committed Dec 21, 2011
1 parent ac36edc commit 7246abc
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions mysql/recipes/server_ec2.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,11 @@
not_if do FileTest.directory?(node['mysql']['ec2_path']) end
end

directory node['mysql']['ec2_path'] do
owner "mysql"
group "mysql"
[node['mysql']['ec2_path'], node['mysql']['data_dir']].each do |dir|
directory dir do
owner "mysql"
group "mysql"
end
end

mount node['mysql']['data_dir'] do
Expand Down

0 comments on commit 7246abc

Please sign in to comment.