From e4d63f7dc66d4bf44d5d3e9ac3f4ff1dee1ad671 Mon Sep 17 00:00:00 2001 From: Robin Gloster Date: Thu, 6 Mar 2014 14:03:13 +0100 Subject: [PATCH] fix mysql not starting if ssl is not disabled --- templates/my.cnf.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/my.cnf.erb b/templates/my.cnf.erb index eb3a661..6750fdd 100644 --- a/templates/my.cnf.erb +++ b/templates/my.cnf.erb @@ -2,7 +2,7 @@ <% if v.is_a?(Hash) -%> [<%= k %>] <% v.sort.map do |ki, vi| -%> -<% if ki =~ /^ssl/ and v['ssl-disable'] == true -%> +<% if ki == 'ssl-disable' or (ki =~ /^ssl/ and v['ssl-disable'] == true) -%> <% next %> <% elsif vi == true or v == '' -%> <%= ki %>