Accepting request 766656 from server:database:postgresql
- Fix a mistake in the creation of /var/lib/pgsql/.bash_profile with the tmpfiles mechanism (bsc#1159335). - Sync ownership of /run/postgresql in the file list with tmpfiles. - bump to 12 OBS-URL: https://build.opensuse.org/request/show/766656 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/postgresql?expand=0&rev=56
This commit is contained in:
commit
0a1f05a885
@ -1,3 +1,3 @@
|
|||||||
# For the PostgreSQL server's unix domain socket
|
# For the PostgreSQL server's unix domain socket
|
||||||
d /run/postgresql 1775 postgres postgres - -
|
d /run/postgresql 1775 postgres postgres - -
|
||||||
f /var/lib/pgsql/.bash_profile 0640 postgres postgres - /usr/share/postgresql/bash_profile
|
C /var/lib/pgsql/.bash_profile 0640 postgres postgres - /usr/share/postgresql/bash_profile
|
||||||
|
@ -1,3 +1,19 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Dec 17 10:27:02 UTC 2019 - Reinhard Max <max@suse.com>
|
||||||
|
|
||||||
|
- Fix a mistake in the creation of /var/lib/pgsql/.bash_profile
|
||||||
|
with the tmpfiles mechanism (bsc#1159335).
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Nov 14 12:36:59 UTC 2019 - Reinhard Max <max@suse.com>
|
||||||
|
|
||||||
|
- Sync ownership of /run/postgresql in the file list with tmpfiles.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Oct 22 13:08:50 UTC 2019 - Marcus Rueckert <mrueckert@suse.de>
|
||||||
|
|
||||||
|
- bump to 12
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon Oct 7 08:26:39 UTC 2019 - Reinhard Max <max@suse.com>
|
Mon Oct 7 08:26:39 UTC 2019 - Reinhard Max <max@suse.com>
|
||||||
|
|
||||||
|
@ -32,7 +32,7 @@ Name: postgresql
|
|||||||
Summary: Basic Clients and Utilities for PostgreSQL
|
Summary: Basic Clients and Utilities for PostgreSQL
|
||||||
License: PostgreSQL
|
License: PostgreSQL
|
||||||
Group: Productivity/Databases/Tools
|
Group: Productivity/Databases/Tools
|
||||||
Version: 11
|
Version: 12
|
||||||
Release: 0
|
Release: 0
|
||||||
Url: https://www.postgresql.org/
|
Url: https://www.postgresql.org/
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
@ -268,7 +268,6 @@ echo "This is a dummy package to provide a dependency on the default PostgreSQL
|
|||||||
|
|
||||||
%install
|
%install
|
||||||
mkdir -p %buildroot/var/lib/pgsql/
|
mkdir -p %buildroot/var/lib/pgsql/
|
||||||
mkdir -p %buildroot/var/run/postgresql
|
|
||||||
|
|
||||||
install -m755 -d %buildroot%{_fillupdir}
|
install -m755 -d %buildroot%{_fillupdir}
|
||||||
install -m644 %{S:1} %buildroot%{_fillupdir}/sysconfig.postgresql
|
install -m644 %{S:1} %buildroot%{_fillupdir}/sysconfig.postgresql
|
||||||
@ -326,6 +325,14 @@ fi
|
|||||||
%post server
|
%post server
|
||||||
%fillup_only -n postgresql
|
%fillup_only -n postgresql
|
||||||
%if %{with systemd}
|
%if %{with systemd}
|
||||||
|
PROFILE="/var/lib/pgsql/.bash_profile"
|
||||||
|
if test -r "$PROFILE" && test "`cat $PROFILE`" = "/usr/share/postgresql/bash_profile"
|
||||||
|
then
|
||||||
|
# Correct a mistake in /usr/lib/tmpfiles.d/postgresql.conf
|
||||||
|
# that created /var/lib/pgsql/.bash_profile with invalid
|
||||||
|
# content (bsc#1159335).
|
||||||
|
rm "$PROFILE"
|
||||||
|
fi
|
||||||
%tmpfiles_create %_tmpfilesdir/postgresql.conf
|
%tmpfiles_create %_tmpfilesdir/postgresql.conf
|
||||||
%service_add_post postgresql.service
|
%service_add_post postgresql.service
|
||||||
%endif
|
%endif
|
||||||
@ -393,10 +400,10 @@ fi
|
|||||||
%_tmpfilesdir/postgresql.conf
|
%_tmpfilesdir/postgresql.conf
|
||||||
%_unitdir/
|
%_unitdir/
|
||||||
/usr/share/postgresql/postgresql-script
|
/usr/share/postgresql/postgresql-script
|
||||||
%ghost %dir %attr(1775,root,root) /run/postgresql
|
%ghost %dir %attr(1775,postgres,postgres) /run/postgresql
|
||||||
%else
|
%else
|
||||||
%config /etc/init.d/postgresql
|
%config /etc/init.d/postgresql
|
||||||
%dir %attr(1775,root,root) /var/run/postgresql
|
%dir %attr(1775,postgres,postgres) /var/run/postgresql
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%files test
|
%files test
|
||||||
|
Loading…
Reference in New Issue
Block a user