diff --git a/templates/my.cnf.erb b/templates/my.cnf.erb index ee77cad..817ac8f 100644 --- a/templates/my.cnf.erb +++ b/templates/my.cnf.erb @@ -2,7 +2,11 @@ <% if v.is_a?(Hash) -%> [<%= k %>] <% @options[k].sort.map do |ki, vi| -%> +<% if vi and vi != '' -%> <%= ki %> = <%= vi %> +<% else -%> +<%= ki %> +<% end -%> <% end -%> <% end -%>