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