From 2d4f05bc3af9ee79c02d6f6a39d7f2e7aec7a591 Mon Sep 17 00:00:00 2001
From: Andrea Dell'Amico <andrea.dellamico@isti.cnr.it>
Date: Sat, 18 Sep 2021 14:35:35 +0200
Subject: [PATCH] Fix the permissions of
 /usr/local/sbin/postgresql_wal_backup_and_removal

---
 tasks/postgresql-backup.yml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tasks/postgresql-backup.yml b/tasks/postgresql-backup.yml
index 5c9bee0..be17a37 100644
--- a/tasks/postgresql-backup.yml
+++ b/tasks/postgresql-backup.yml
@@ -44,7 +44,7 @@
   tags: [ 'pg_backup', 'postgresql', 'postgres' ]
 
 - name: Backup script for the postgresql streaming replication database(s)
-  template: src=postgresql_wal_backup_and_removal.j2 dest=/usr/local/sbin/postgresql_wal_backup_and_removal owner=root mode=0744
+  template: src=postgresql_wal_backup_and_removal.j2 dest=/usr/local/sbin/postgresql_wal_backup_and_removal owner=root group=postgres mode=0754
   tags: [ 'pg_stream_backup', 'postgresql', 'postgres' ]
 
 - name: backuppc root script for the postgresql streaming replication database(s)