diff --git a/postgresql-tmpfiles.conf b/postgresql-tmpfiles.conf index 192ae9d..e63a3a3 100644 --- a/postgresql-tmpfiles.conf +++ b/postgresql-tmpfiles.conf @@ -1,3 +1,3 @@ # For the PostgreSQL server's unix domain socket -d /run/postgresql 0755 postgres postgres - +d /run/postgresql 1755 root root - f /var/lib/pgsql/.bash_profile 0640 postgres postgres /usr/share/postgresql/bash_profile diff --git a/postgresql.changes b/postgresql.changes index c9cdf95..4ceb394 100644 --- a/postgresql.changes +++ b/postgresql.changes @@ -3,7 +3,6 @@ Thu Jan 31 13:23:56 UTC 2019 - Reinhard Max - Move bash profile out of /var/lib to allow transactional updates (bsc#1100397). -- Fix permissions and ownership of /var/run/postgresql . - Use /run/postgresql instead of /var/run/postgresql in %ghost and postgresql-tmpfiles.conf to avoid rpmlint warnings and errors. diff --git a/postgresql.spec b/postgresql.spec index b10085f..b0546e5 100644 --- a/postgresql.spec +++ b/postgresql.spec @@ -384,10 +384,10 @@ fi %_tmpfilesdir/postgresql.conf %_unitdir/ /usr/share/postgresql/postgresql-script -%ghost %dir %attr(0755,postgres,postgres) /run/postgresql +%ghost %dir %attr(1777,root,root) /run/postgresql %else %config /etc/init.d/postgresql -%dir %attr(0755,postgres,postgres) /var/run/postgresql +%dir %attr(1777,root,root) /var/run/postgresql %endif %files test