From e02a7c160475733749dbb937dd01883649909480b7d8bd2889cf511bb8d3d744 Mon Sep 17 00:00:00 2001 From: Lars Vogdt Date: Tue, 4 Dec 2018 15:17:50 +0000 Subject: [PATCH] Accepting request 653071 from home:darix:branches:server:database:postgresql - add /var/run/postgresql to the filelist. as %ghost for systemd systems and directly for non systemd systems OBS-URL: https://build.opensuse.org/request/show/653071 OBS-URL: https://build.opensuse.org/package/show/server:database:postgresql/postgresql?expand=0&rev=108 --- postgresql.changes | 6 ++++++ postgresql.spec | 3 +++ 2 files changed, 9 insertions(+) diff --git a/postgresql.changes b/postgresql.changes index eb04f75..77cdf3e 100644 --- a/postgresql.changes +++ b/postgresql.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Fri Nov 30 13:14:40 UTC 2018 - Marcus Rueckert + +- add /var/run/postgresql to the filelist. as %ghost for systemd + systems and directly for non systemd systems + ------------------------------------------------------------------- Fri Nov 30 11:05:00 UTC 2018 - Marcus Rueckert diff --git a/postgresql.spec b/postgresql.spec index 61a18db..afd1e5d 100644 --- a/postgresql.spec +++ b/postgresql.spec @@ -268,6 +268,7 @@ echo "This is a dummy package to provide a dependency on the default PostgreSQL %install mkdir -p %buildroot/var/lib/pgsql/ +mkdir -p %buildroot/var/run/postgresql install -m640 %{SOURCE5} %buildroot/var/lib/pgsql/.bash_profile install -m755 -d %buildroot%{_fillupdir} @@ -382,8 +383,10 @@ fi %_tmpfilesdir/postgresql.conf %_unitdir/ /usr/share/postgresql/postgresql-script +%ghost %dir %attr(1777,root,root) /var/run/postgresql %else %config /etc/init.d/postgresql +%dir %attr(1777,root,root) /var/run/postgresql %endif %files test