Accepting request 1001279 from server:database:postgresql

OBS-URL: https://build.opensuse.org/request/show/1001279
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/postgresql?expand=0&rev=65
This commit is contained in:
Richard Brown 2022-10-04 18:37:21 +00:00 committed by Git OBS Bridge
commit cbe1e279a7
3 changed files with 13 additions and 3 deletions

View File

@ -10,7 +10,7 @@ PIDFILE=$DATADIR/postmaster.pid
#
if test -r $DATADIR/PG_VERSION ; then
DATA_VERSION=$(cat $DATADIR/PG_VERSION)
POSTGRES=/usr/lib/postgresql${DATA_VERSION/./}/bin/postgres
POSTGRES=/usr/lib/postgresql$(echo -n $DATA_VERSION | tr -d .)/bin/postgres
fi
if test -x /usr/bin/postgres; then
ACTIVE=$(readlink -q -f /usr/bin/postgres)
@ -49,7 +49,7 @@ case "$1" in
test -n "$POSTGRES_LANG" && export LC_ALL="$POSTGRES_LANG"
install -d -m 700 ${DATADIR} &&
echo "Initializing PostgreSQL $VERSION at location ${DATADIR}"
/usr/bin/initdb --auth=ident $DATADIR &> initlog || {
/usr/bin/initdb --auth=ident $DATADIR > initlog 2>&1 || {
echo "Initialisation failed. See $PWD/initlog ."
exit 1
}

View File

@ -1,3 +1,13 @@
-------------------------------------------------------------------
Mon Sep 5 13:12:41 UTC 2022 - Dirk Müller <dmueller@suse.com>
- avoid bashisms in /bin/sh based startup script
-------------------------------------------------------------------
Sat May 21 15:11:15 UTC 2022 - Marcus Rueckert <mrueckert@suse.de>
- Bump to postgresql 15
-------------------------------------------------------------------
Wed Mar 16 14:50:22 UTC 2022 - Callum Farmer <gmbr3@opensuse.org>

View File

@ -15,7 +15,7 @@
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
%define pgmajor 14
%define pgmajor 15
%define defaultpackage postgresql%pgmajor
%if ! %{defined _rpmmacrodir}