20 lines
533 B
Text
20 lines
533 B
Text
<% @options.sort.map do |k,v| -%>
|
|
<% if v.is_a?(Hash) -%>
|
|
[<%= k %>]
|
|
<% v.sort.map do |ki, vi| -%>
|
|
<% if ki == 'ssl-disable' or (ki =~ /^ssl/ and v['ssl-disable'] == true) -%>
|
|
<% next %>
|
|
<% elsif 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/
|