Skip to content
Browse files

[COOK-945] - add escaped quotes around password

  • Loading branch information...
1 parent 7244f1f commit 21930af5197be0eae55d2f42a12e41a9427ba5e3 @jtimberman jtimberman committed Jan 4, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 mysql/recipes/server.rb
View
2 mysql/recipes/server.rb
@@ -134,7 +134,7 @@
end
execute "mysql-install-privileges" do
- command "#{node['mysql']['mysql_bin']} -u root #{node['mysql']['server_root_password'].empty? ? '' : '-p' }#{node['mysql']['server_root_password']} < #{grants_path}"
+ command "#{node['mysql']['mysql_bin']} -u root #{node['mysql']['server_root_password'].empty? ? '' : '-p' }\"#{node['mysql']['server_root_password']}\" < #{grants_path}"
action :nothing
subscribes :run, resources("template[#{grants_path}]"), :immediately
end

0 comments on commit 21930af

Please sign in to comment.
Something went wrong with that request. Please try again.