pgbackrest: Add su directive to logrotate file. Even though this is not required...
authorDevrim Gunduz <devrim@gunduz.org>
Tue, 4 Nov 2025 12:40:47 +0000 (15:40 +0300)
committerDevrim Gunduz <devrim@gunduz.org>
Tue, 4 Nov 2025 12:40:47 +0000 (15:40 +0300)
rpm/redhat/main/common/pgbackrest/main/pgbackrest.logrotate
rpm/redhat/main/common/pgbackrest/main/pgbackrest.spec

index ceb6cdb0830a5411424f647a95442fb71872a13b..fc9ebf9f3cfbe753c1f6d8c92e6bc815f21bd6c6 100644 (file)
@@ -8,4 +8,5 @@
        nodateext
        weekly
        rotate 5
+       su postgres postgres
 }
index 0068c6255d103bce1c6d8813fdbfd29cec1d795a..0b0187184cd302263dc9118f7fec59516fb4f76a 100644 (file)
@@ -4,7 +4,7 @@
 Summary:       Reliable PostgreSQL Backup & Restore
 Name:          pgbackrest
 Version:       2.57.0
-Release:       1PGDG%{?dist}
+Release:       2PGDG%{?dist}
 License:       MIT
 Url:           http://www.pgbackrest.org/
 Source0:       https://github.com/pgbackrest/pgbackrest/archive/release/%{version}.tar.gz
@@ -130,6 +130,12 @@ fi
 %attr(-,postgres,postgres) /var/spool/%{name}
 
 %changelog
+* Tue Nov 4 2025 Devrim Gündüz <devrim@gunduz.org> - 2.57.0-2PGDG
+- Add su directive to logrotate file. Even though this is not required for
+  regular installs, some automation systems may break the permissions and
+  prevent logrotate from working. Report and patch from Aleš Zelený.
+  Fixes: https://github.com/pgdg-packaging/pgdg-rpms/issues/107
+
 * Mon Oct 20 2025 Devrim Gündüz <devrim@gunduz.org> - 2.57.0-1PGDG
 - Update to 2.57.0, per changes described at:
   https://pgbackrest.org/release.html#2.57.0