From 8cecc36bf3f53336b75fedfa44d19dae3bb274c1 Mon Sep 17 00:00:00 2001 From: William Petit Date: Tue, 13 Oct 2020 16:19:31 +0200 Subject: [PATCH] Specify configuration file --- debian/postgres-backup.links | 1 - debian/postgres-backup.service | 2 +- debian/rules | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/debian/postgres-backup.links b/debian/postgres-backup.links index db11168..6bd6498 100644 --- a/debian/postgres-backup.links +++ b/debian/postgres-backup.links @@ -1,3 +1,2 @@ -/usr/share/postgres-backup/pg_backup.conf /etc/postgres-backup/pg_backup.conf /usr/share/postgres-backup/pg_backup.sh /usr/bin/pg_backup.sh /usr/share/postgres-backup/pg_backup_rotated.sh /usr/bin/pg_backup_rotated.sh \ No newline at end of file diff --git a/debian/postgres-backup.service b/debian/postgres-backup.service index d8e508d..5ea7628 100644 --- a/debian/postgres-backup.service +++ b/debian/postgres-backup.service @@ -3,7 +3,7 @@ Description=Run PostgreSQL backup [Service] Type=oneshot -ExecStart=/usr/bin/pg_backup_rotated.sh +ExecStart=/usr/bin/pg_backup_rotated.sh -c /etc/postgres-backup/pg_backup.conf [Install] WantedBy=default.target \ No newline at end of file diff --git a/debian/rules b/debian/rules index 1f09b85..5af568d 100644 --- a/debian/rules +++ b/debian/rules @@ -14,7 +14,7 @@ override_dh_auto_install: cp script/pg_backup.sh debian/postgres-backup/usr/share/postgres-backup/pg_backup.sh cp script/pg_backup_rotated.sh debian/postgres-backup/usr/share/postgres-backup/pg_backup_rotated.sh - cp conf/pg_backup.conf debian/postgres-backup/usr/share/postgres-backup/pg_backup.conf + cp conf/pg_backup.conf debian/postgres-backup/etc/postgres-backup/pg_backup.conf chmod +x debian/postgres-backup/usr/share/postgres-backup/pg_backup_rotated.sh chmod +x debian/postgres-backup/usr/share/postgres-backup/pg_backup.sh