Skip to content

Commit 79050c1

Browse files
committed
don't create empty lines in recovery template
1 parent f040dd2 commit 79050c1

File tree

1 file changed

+30
-30
lines changed

1 file changed

+30
-30
lines changed

templates/recovery.conf

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,47 +1,47 @@
1-
<% if @restore_command %>
1+
<% if @restore_command -%>
22
restore_command = '<%= @restore_command %>'
3-
<% end %>
4-
<% if @archive_cleanup_command %>
3+
<% end -%>
4+
<% if @archive_cleanup_command -%>
55
archive_cleanup_command = '<%= @archive_cleanup_command %>'
6-
<% end %>
7-
<% if @recovery_end_command %>
6+
<% end -%>
7+
<% if @recovery_end_command -%>
88
recovery_end_command = '<%= @recovery_end_command %>'
9-
<% end %>
9+
<% end -%>
1010

11-
<% if @recovery_target_name %>
11+
<% if @recovery_target_name -%>
1212
recovery_target_name = '<%= @recovery_target_name %>'
13-
<% end %>
14-
<% if @recovery_target_time %>
13+
<% end -%>
14+
<% if @recovery_target_time -%>
1515
recovery_target_time = '<%= @recovery_target_time %>'
16-
<% end %>
17-
<% if @recovery_target_xid %>
16+
<% end -%>
17+
<% if @recovery_target_xid -%>
1818
recovery_target_xid = '<%= @recovery_target_xid %>'
19-
<% end %>
20-
<% if @recovery_target_inclusive %>
19+
<% end -%>
20+
<% if @recovery_target_inclusive -%>
2121
recovery_target_inclusive = <%= @recovery_target_inclusive %>
22-
<% end %>
23-
<% if @recovery_target %>
22+
<% end -%>
23+
<% if @recovery_target -%>
2424
recovery_target = '<%= @recovery_target %>'
25-
<% end %>
26-
<% if @recovery_target_timeline %>
25+
<% end -%>
26+
<% if @recovery_target_timeline -%>
2727
recovery_target_timeline = '<%= @recovery_target_timeline %>'
28-
<% end %>
29-
<% if @pause_at_recovery_target %>
28+
<% end -%>
29+
<% if @pause_at_recovery_target -%>
3030
pause_at_recovery_target = <%= @pause_at_recovery_target %>
31-
<% end %>
31+
<% end -%>
3232

33-
<% if @standby_mode %>
33+
<% if @standby_mode -%>
3434
standby_mode = <%= @standby_mode %>
35-
<% end %>
36-
<% if @primary_conninfo %>
35+
<% end -%>
36+
<% if @primary_conninfo -%>
3737
primary_conninfo = '<%= @primary_conninfo %>'
38-
<% end %>
39-
<% if @primary_slot_name %>
38+
<% end -%>
39+
<% if @primary_slot_name -%>
4040
primary_slot_name = '<%= @primary_slot_name %>'
41-
<% end %>
42-
<% if @trigger_file %>
41+
<% end -%>
42+
<% if @trigger_file -%>
4343
trigger_file = '<%= @trigger_file %>'
44-
<% end %>
45-
<% if @recovery_min_apply_delay %>
44+
<% end -%>
45+
<% if @recovery_min_apply_delay -%>
4646
recovery_min_apply_delay = <%= @recovery_min_apply_delay %>
47-
<% end %>
47+
<% end -%>

0 commit comments

Comments
 (0)