56e81a38c8
allowing reverting to mysql's default value. Note that previously a value of :undef would have led to a nonsensical my.cnf file.
18 lines
428 B
Text
18 lines
428 B
Text
<% @options.sort.map do |k,v| -%>
|
|
<% if v.is_a?(Hash) -%>
|
|
[<%= k %>]
|
|
<% v.sort.map do |ki, vi| -%>
|
|
<% if vi == true or v == '' -%>
|
|
<%= ki %>
|
|
<% elsif vi.is_a?(Array) -%>
|
|
<% vi.each do |vii| -%>
|
|
<%= ki %> = <%= vii %>
|
|
<% end -%>
|
|
<% elsif vi != :undef -%>
|
|
<%= ki %> = <%= vi %>
|
|
<% end -%>
|
|
<% end -%>
|
|
<% end %>
|
|
<% end -%>
|
|
|
|
!includedir /etc/mysql/conf.d/
|