- postgresql-script: /etc/sysconfig/language is deprecated, use the

locale that was inherited from systemd instead for initializing
  a new database instance (boo#1074988).

OBS-URL: https://build.opensuse.org/package/show/server:database:postgresql/postgresql?expand=0&rev=100
This commit is contained in:
2018-01-17 17:14:44 +00:00
committed by Git OBS Bridge
parent 38997f090a
commit efaf1f2029
2 changed files with 9 additions and 4 deletions

View File

@@ -43,13 +43,11 @@ cd ~
case "$1" in
start)
if [ ! -f $DATADIR/PG_VERSION ]; then
LANG_SYSCONFIG=/etc/sysconfig/language
test -f "$LANG_SYSCONFIG" && . $LANG_SYSCONFIG
LANG=${POSTGRES_LANG:-$RC_LANG}
LANG=${POSTGRES_LANG:-$LANG}
V=$(printf "%02d%02d" $(echo $VERSION|awk -F. '{print $1, $2}'))
install -d -m 700 ${DATADIR} &&
echo "Initializing PostgreSQL $VERSION at location ${DATADIR}"
/usr/bin/initdb --locale=$LANG --auth=ident $DATADIR &> initlog || {
/usr/bin/initdb --auth=ident $DATADIR &> initlog || {
echo "Initialisation failed. See $PWD/initlog ."
exit 1
}

View File

@@ -1,3 +1,10 @@
-------------------------------------------------------------------
Wed Jan 17 16:48:57 UTC 2018 - max@suse.com
- postgresql-script: /etc/sysconfig/language is deprecated, use the
locale that was inherited from systemd instead for initializing
a new database instance (boo#1074988).
-------------------------------------------------------------------
Wed Dec 13 18:10:54 UTC 2017 - mrueckert@suse.de