diff --git a/debian/postgres-backup.dirs b/debian/postgres-backup.dirs new file mode 100644 index 0000000..c896bd1 --- /dev/null +++ b/debian/postgres-backup.dirs @@ -0,0 +1 @@ +/var/backups/database/postgresql \ No newline at end of file diff --git a/debian/postgres-backup.postinst b/debian/postgres-backup.postinst new file mode 100644 index 0000000..a05b58d --- /dev/null +++ b/debian/postgres-backup.postinst @@ -0,0 +1,4 @@ +#!/bin/bash + +mkdir -p /var/backups/database/postgresql +chown -R postgres:postgres /var/backups/database/postgresql \ No newline at end of file diff --git a/debian/rules b/debian/rules index 340e69c..5af568d 100644 --- a/debian/rules +++ b/debian/rules @@ -20,6 +20,5 @@ override_dh_auto_install: 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 -o postgres -g postgres debian/postgres-backup/var/backups/database/postgresql install -d debian/postgres-backup \ No newline at end of file