From bdd0f79252e6c4695cf89c7a9ebacac908386d5a Mon Sep 17 00:00:00 2001 From: Andrea Dell'Amico Date: Mon, 9 Apr 2018 13:17:04 +0200 Subject: [PATCH] Fix the backup files permissions before exiting. --- postgresql/files/postgresql-backup.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/postgresql/files/postgresql-backup.sh b/postgresql/files/postgresql-backup.sh index 0ec768bb..d4909922 100755 --- a/postgresql/files/postgresql-backup.sh +++ b/postgresql/files/postgresql-backup.sh @@ -99,7 +99,9 @@ write_nagios_data() { fi } - +fix_backup_permissions() { + chmod -R u+rwX,g-rwx,o-rwx ${HISTDIR} +} ######## # # Main @@ -137,6 +139,7 @@ else fi fi +fix_backup_permissions cleanup_old_backups exit $RETVAL