Specify configuration file
This commit is contained in:
parent
4205191c4f
commit
8cecc36bf3
|
@ -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
|
|
@ -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
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue