don't create empty lines in recovery template

This commit is contained in:
Tim Meusel 2016-06-01 18:04:56 +02:00
parent f040dd2d72
commit 79050c111b
No known key found for this signature in database
GPG key ID: 04D659E6BF1C4CC0

View file

@ -1,47 +1,47 @@
<% if @restore_command %> <% if @restore_command -%>
restore_command = '<%= @restore_command %>' restore_command = '<%= @restore_command %>'
<% end %> <% end -%>
<% if @archive_cleanup_command %> <% if @archive_cleanup_command -%>
archive_cleanup_command = '<%= @archive_cleanup_command %>' archive_cleanup_command = '<%= @archive_cleanup_command %>'
<% end %> <% end -%>
<% if @recovery_end_command %> <% if @recovery_end_command -%>
recovery_end_command = '<%= @recovery_end_command %>' recovery_end_command = '<%= @recovery_end_command %>'
<% end %> <% end -%>
<% if @recovery_target_name %> <% if @recovery_target_name -%>
recovery_target_name = '<%= @recovery_target_name %>' recovery_target_name = '<%= @recovery_target_name %>'
<% end %> <% end -%>
<% if @recovery_target_time %> <% if @recovery_target_time -%>
recovery_target_time = '<%= @recovery_target_time %>' recovery_target_time = '<%= @recovery_target_time %>'
<% end %> <% end -%>
<% if @recovery_target_xid %> <% if @recovery_target_xid -%>
recovery_target_xid = '<%= @recovery_target_xid %>' recovery_target_xid = '<%= @recovery_target_xid %>'
<% end %> <% end -%>
<% if @recovery_target_inclusive %> <% if @recovery_target_inclusive -%>
recovery_target_inclusive = <%= @recovery_target_inclusive %> recovery_target_inclusive = <%= @recovery_target_inclusive %>
<% end %> <% end -%>
<% if @recovery_target %> <% if @recovery_target -%>
recovery_target = '<%= @recovery_target %>' recovery_target = '<%= @recovery_target %>'
<% end %> <% end -%>
<% if @recovery_target_timeline %> <% if @recovery_target_timeline -%>
recovery_target_timeline = '<%= @recovery_target_timeline %>' recovery_target_timeline = '<%= @recovery_target_timeline %>'
<% end %> <% end -%>
<% if @pause_at_recovery_target %> <% if @pause_at_recovery_target -%>
pause_at_recovery_target = <%= @pause_at_recovery_target %> pause_at_recovery_target = <%= @pause_at_recovery_target %>
<% end %> <% end -%>
<% if @standby_mode %> <% if @standby_mode -%>
standby_mode = <%= @standby_mode %> standby_mode = <%= @standby_mode %>
<% end %> <% end -%>
<% if @primary_conninfo %> <% if @primary_conninfo -%>
primary_conninfo = '<%= @primary_conninfo %>' primary_conninfo = '<%= @primary_conninfo %>'
<% end %> <% end -%>
<% if @primary_slot_name %> <% if @primary_slot_name -%>
primary_slot_name = '<%= @primary_slot_name %>' primary_slot_name = '<%= @primary_slot_name %>'
<% end %> <% end -%>
<% if @trigger_file %> <% if @trigger_file -%>
trigger_file = '<%= @trigger_file %>' trigger_file = '<%= @trigger_file %>'
<% end %> <% end -%>
<% if @recovery_min_apply_delay %> <% if @recovery_min_apply_delay -%>
recovery_min_apply_delay = <%= @recovery_min_apply_delay %> recovery_min_apply_delay = <%= @recovery_min_apply_delay %>
<% end %> <% end -%>