Specify configuration file

This commit is contained in:
wpetit 2020-10-13 16:19:31 +02:00
parent 4205191c4f
commit 8cecc36bf3
3 changed files with 2 additions and 3 deletions

View File

@ -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

View File

@ -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

2
debian/rules vendored
View File

@ -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