Simplify a few things.
This commit is contained in:
parent
4e6073de92
commit
b00a6758a2
3 changed files with 3 additions and 3 deletions
|
@ -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 %>
|
||||
|
|
|
@ -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
|
||||
''
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue