Skip to content

Commit 21930af

Browse files
author
jtimberman
committed
[COOK-945] - add escaped quotes around password
1 parent 7244f1f commit 21930af

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mysql/recipes/server.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@
134134
end
135135

136136
execute "mysql-install-privileges" do
137-
command "#{node['mysql']['mysql_bin']} -u root #{node['mysql']['server_root_password'].empty? ? '' : '-p' }#{node['mysql']['server_root_password']} < #{grants_path}"
137+
command "#{node['mysql']['mysql_bin']} -u root #{node['mysql']['server_root_password'].empty? ? '' : '-p' }\"#{node['mysql']['server_root_password']}\" < #{grants_path}"
138138
action :nothing
139139
subscribes :run, resources("template[#{grants_path}]"), :immediately
140140
end

0 commit comments

Comments
 (0)