From be75bcb6dbe9b4d64e9a99c09d87a7748ce07cf4 Mon Sep 17 00:00:00 2001 From: Alessandro Franceschi Date: Fri, 2 May 2014 23:01:58 +0200 Subject: [PATCH] Fix for #45 --- templates/user.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/user.erb b/templates/user.erb index 41b7119..512a2f7 100644 --- a/templates/user.erb +++ b/templates/user.erb @@ -3,7 +3,7 @@ GRANT USAGE ON *.* TO '<%= @mysql_user %>'@'<%= @mysql_host %>' IDENTIFIED BY - <% if has_variable?('mysql_password_hash') && @mysql_password_hash then %> + <% if has_variable?('mysql_password_hash') && @mysql_password_hash != '' then %> PASSWORD '<%= @mysql_password_hash %>' <% else %> '<%= @mysql_password %>';