Merge lp:~brad-marshall/charms/trusty/postgresql/fix-cron-backups into lp:charms/trusty/postgresql

Proposed by Brad Marshall
Status: Merged
Merged at revision: 108
Proposed branch: lp:~brad-marshall/charms/trusty/postgresql/fix-cron-backups
Merge into: lp:charms/trusty/postgresql
Diff against target: 23 lines (+3/-6)
1 file modified
templates/postgres.cron.tmpl (+3/-6)
To merge this branch: bzr merge lp:~brad-marshall/charms/trusty/postgresql/fix-cron-backups
Reviewer Review Type Date Requested Status
Stuart Bishop (community) Approve
Review via email: mp+241925@code.launchpad.net

Description of the change

Fixing the cron backups to not split across multiple lines, which doesn't work.

To post a comment you must log in.
Revision history for this message
Stuart Bishop (stub) wrote :

Ta.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'templates/postgres.cron.tmpl'
2--- templates/postgres.cron.tmpl 2014-07-04 13:22:29 +0000
3+++ templates/postgres.cron.tmpl 2014-11-17 06:42:42 +0000
4@@ -1,16 +1,13 @@
5 # Maintained by juju
6 #
7 {% if backup_schedule -%}
8-{{backup_schedule}} postgres \
9- {{scripts_dir}}/pg_backup_job {{backup_retention_count}}
10+{{backup_schedule}} postgres {{scripts_dir}}/pg_backup_job {{backup_retention_count}}
11 {% endif -%}
12
13 {% if swiftwal_backup_schedule -%}
14-{{swiftwal_backup_schedule}} postgres \
15- {{swiftwal_backup_command}} && {{swiftwal_prune_command}}
16+{{swiftwal_backup_schedule}} postgres {{swiftwal_backup_command}} && {{swiftwal_prune_command}}
17 {% endif -%}
18
19 {% if wal_e_backup_schedule -%}
20-{{wal_e_backup_schedule}} postgres \
21- {{wal_e_backup_command}} && {{wal_e_prune_command}}
22+{{wal_e_backup_schedule}} postgres {{wal_e_backup_command}} && {{wal_e_prune_command}}
23 {% endif -%}

Subscribers

People subscribed via source and target branches

to all changes: