Create and set ownership to backup directory
This commit is contained in:
parent
e0e4cd71de
commit
3779002a3d
1
debian/postgres-backup.dirs
vendored
Normal file
1
debian/postgres-backup.dirs
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
/var/backups/database/postgresql
|
4
debian/postgres-backup.postinst
vendored
Normal file
4
debian/postgres-backup.postinst
vendored
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
mkdir -p /var/backups/database/postgresql
|
||||||
|
chown -R postgres:postgres /var/backups/database/postgresql
|
1
debian/rules
vendored
1
debian/rules
vendored
@ -20,6 +20,5 @@ 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