Use postgres user
This commit is contained in:
parent
8cecc36bf3
commit
2a9f30452f
1
debian/postgres-backup.service
vendored
1
debian/postgres-backup.service
vendored
@ -4,6 +4,7 @@ Description=Run PostgreSQL backup
|
|||||||
[Service]
|
[Service]
|
||||||
Type=oneshot
|
Type=oneshot
|
||||||
ExecStart=/usr/bin/pg_backup_rotated.sh -c /etc/postgres-backup/pg_backup.conf
|
ExecStart=/usr/bin/pg_backup_rotated.sh -c /etc/postgres-backup/pg_backup.conf
|
||||||
|
User=postgres
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=default.target
|
WantedBy=default.target
|
1
debian/rules
vendored
1
debian/rules
vendored
@ -20,5 +20,6 @@ override_dh_auto_install:
|
|||||||
chmod +x debian/postgres-backup/usr/share/postgres-backup/pg_backup.sh
|
chmod +x debian/postgres-backup/usr/share/postgres-backup/pg_backup.sh
|
||||||
|
|
||||||
install -D -m 644 debian/postgres-backup.timer debian/postgres-backup/lib/systemd/system/postgres-backup.timer
|
install -D -m 644 debian/postgres-backup.timer debian/postgres-backup/lib/systemd/system/postgres-backup.timer
|
||||||
|
install -d -o postgres -g postgres debian/postgres-backup/var/backups/database/postgresql
|
||||||
|
|
||||||
install -d debian/postgres-backup
|
install -d debian/postgres-backup
|
Loading…
x
Reference in New Issue
Block a user