Simplify a few things.

This commit is contained in:
Ashley Penney 2013-07-09 23:12:38 -04:00
parent 4e6073de92
commit b00a6758a2
3 changed files with 3 additions and 3 deletions

View file

@ -92,7 +92,7 @@ default-storage-engine = <%= @default_engine %>
<% if @character_set != 'UNSET' -%>
character-set-server = <%= @character_set %>
<% end -%>
<% if @ssl == true %>
<% if @ssl %>
ssl-ca = <%= @ssl_ca %>
ssl-cert = <%= @ssl_cert %>
ssl-key = <%= @ssl_key %>

View file

@ -3,7 +3,7 @@
[<%= section %>]
<% content.sort.each do |key, values| -%>
<% [values].flatten.sort.each do |value| -%>
<%= value == false ? '#' : '' %><%= key -%><%=
<%= !value ? '#' : '' %><%= key -%><%=
case value
when true, false
''

View file

@ -34,7 +34,7 @@ cleanup
mysqldump -u${USER} -p${PASS} --opt --flush-logs --single-transaction \
--all-databases <% if @backupcompress %>| bzcat -zc <% end %>> ${DIR}/${PREFIX}`date +%Y%m%d-%H%M%S`.sql<% if @backupcompress %>.bz2<% end %>
<% if not @delete_before_dump -%>
<% unless @delete_before_dump -%>
if [ $? -eq 0 ] ; then
cleanup
fi