pgbackrest: Do not chown postgres' home directory, and leave it to tmpfiles.d fragme...
authorDevrim Gunduz <devrim@gunduz.org>
Tue, 4 Nov 2025 12:45:50 +0000 (15:45 +0300)
committerDevrim Gunduz <devrim@gunduz.org>
Tue, 4 Nov 2025 12:45:50 +0000 (15:45 +0300)
rpm/redhat/main/common/pgbackrest/main/pgbackrest.spec

index 0b0187184cd302263dc9118f7fec59516fb4f76a..a0b2114b68d7a02b2b55a4c20c1dfb50a3e18111 100644 (file)
@@ -89,7 +89,6 @@ are required to perform a backup which increases security.
 
 %pre
 %sysusers_create_package %{name} %SOURCE6
-%{__chown} postgres: /var/lib/pgsql
 
 %post
 if [ $1 -eq 1 ] ; then
@@ -135,6 +134,9 @@ fi
   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
+- Do not chown postgres' home directory, and leave it to tmpfiles.d fragment.
+  Per report from arnobnq.
+  Fixes: https://github.com/pgdg-packaging/pgdg-rpms/issues/108
 
 * Mon Oct 20 2025 Devrim Gündüz <devrim@gunduz.org> - 2.57.0-1PGDG
 - Update to 2.57.0, per changes described at: