- 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. OBS-URL: https://build.opensuse.org/package/show/server:database:postgresql/postgresql?expand=0&rev=109
This commit is contained in:
@@ -1,2 +1,3 @@
|
||||
# For the PostgreSQL server's unix domain socket
|
||||
d /var/run/postgresql 1777 root root -
|
||||
d /run/postgresql 0755 postgres postgres -
|
||||
f /var/lib/pgsql/.bash_profile 0640 postgres postgres /usr/share/postgresql/bash_profile
|
||||
|
@@ -1,3 +1,12 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu Jan 31 13:23:56 UTC 2019 - Reinhard Max <max@suse.com>
|
||||
|
||||
- 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.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Nov 30 13:14:40 UTC 2018 - Marcus Rueckert <mrueckert@suse.de>
|
||||
|
||||
|
@@ -269,7 +269,6 @@ 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}
|
||||
install -m644 %{S:1} %buildroot%{_fillupdir}/sysconfig.postgresql
|
||||
@@ -280,6 +279,7 @@ install -m644 %{S:2} %buildroot%fwdir/%fwname
|
||||
install -m755 -d %buildroot/usr/sbin
|
||||
|
||||
install -m755 -d %buildroot/usr/share/postgresql
|
||||
install -m640 %{S:7} %buildroot/usr/share/postgresql/bash_profile
|
||||
install -m755 %{S:7} %buildroot/usr/share/postgresql/install-alternatives
|
||||
|
||||
%if %{with systemd}
|
||||
@@ -370,7 +370,8 @@ fi
|
||||
%defattr(-,root,root,-)
|
||||
%doc README
|
||||
%attr(750,postgres,postgres) %dir /var/lib/pgsql
|
||||
%attr(640,postgres,postgres) %config(noreplace) /var/lib/pgsql/.bash_profile
|
||||
%attr(644,root,root) /usr/share/postgresql/bash_profile
|
||||
%ghost %config %attr(640,postgres,postgres) /var/lib/pgsql/.bash_profile
|
||||
|
||||
%if 0%{?suse_version} > 1110
|
||||
%dir %fwdir
|
||||
@@ -383,10 +384,10 @@ fi
|
||||
%_tmpfilesdir/postgresql.conf
|
||||
%_unitdir/
|
||||
/usr/share/postgresql/postgresql-script
|
||||
%ghost %dir %attr(1777,root,root) /var/run/postgresql
|
||||
%ghost %dir %attr(0755,postgres,postgres) /run/postgresql
|
||||
%else
|
||||
%config /etc/init.d/postgresql
|
||||
%dir %attr(1777,root,root) /var/run/postgresql
|
||||
%dir %attr(0755,postgres,postgres) /var/run/postgresql
|
||||
%endif
|
||||
|
||||
%files test
|
||||
|
Reference in New Issue
Block a user