From 79050c111b8c9f7f1b731e08a46cbc1e98cd7f1c Mon Sep 17 00:00:00 2001 From: Tim Meusel Date: Wed, 1 Jun 2016 18:04:56 +0200 Subject: [PATCH] don't create empty lines in recovery template --- templates/recovery.conf | 60 ++++++++++++++++++++--------------------- 1 file changed, 30 insertions(+), 30 deletions(-) diff --git a/templates/recovery.conf b/templates/recovery.conf index 6fb4789..a678fae 100644 --- a/templates/recovery.conf +++ b/templates/recovery.conf @@ -1,47 +1,47 @@ -<% if @restore_command %> +<% if @restore_command -%> restore_command = '<%= @restore_command %>' -<% end %> -<% if @archive_cleanup_command %> +<% end -%> +<% if @archive_cleanup_command -%> archive_cleanup_command = '<%= @archive_cleanup_command %>' -<% end %> -<% if @recovery_end_command %> +<% end -%> +<% if @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 %>' -<% end %> -<% if @recovery_target_time %> +<% end -%> +<% if @recovery_target_time -%> recovery_target_time = '<%= @recovery_target_time %>' -<% end %> -<% if @recovery_target_xid %> +<% end -%> +<% if @recovery_target_xid -%> recovery_target_xid = '<%= @recovery_target_xid %>' -<% end %> -<% if @recovery_target_inclusive %> +<% end -%> +<% if @recovery_target_inclusive -%> recovery_target_inclusive = <%= @recovery_target_inclusive %> -<% end %> -<% if @recovery_target %> +<% end -%> +<% if @recovery_target -%> recovery_target = '<%= @recovery_target %>' -<% end %> -<% if @recovery_target_timeline %> +<% end -%> +<% if @recovery_target_timeline -%> recovery_target_timeline = '<%= @recovery_target_timeline %>' -<% end %> -<% if @pause_at_recovery_target %> +<% end -%> +<% if @pause_at_recovery_target -%> pause_at_recovery_target = <%= @pause_at_recovery_target %> -<% end %> +<% end -%> -<% if @standby_mode %> +<% if @standby_mode -%> standby_mode = <%= @standby_mode %> -<% end %> -<% if @primary_conninfo %> +<% end -%> +<% if @primary_conninfo -%> primary_conninfo = '<%= @primary_conninfo %>' -<% end %> -<% if @primary_slot_name %> +<% end -%> +<% if @primary_slot_name -%> primary_slot_name = '<%= @primary_slot_name %>' -<% end %> -<% if @trigger_file %> +<% end -%> +<% if @trigger_file -%> trigger_file = '<%= @trigger_file %>' -<% end %> -<% if @recovery_min_apply_delay %> +<% end -%> +<% if @recovery_min_apply_delay -%> recovery_min_apply_delay = <%= @recovery_min_apply_delay %> -<% end %> +<% end -%>