BUG #14083: 'postgresql95-setup initdb' breaks inside docker container - Mailing list pgsql-bugs

From porjo38@yahoo.com.au
Subject BUG #14083: 'postgresql95-setup initdb' breaks inside docker container
Date
Msg-id 20160414035835.22934.58240@wrigleys.postgresql.org
Whole thread Raw
Responses Re: BUG #14083: 'postgresql95-setup initdb' breaks inside docker container
List pgsql-bugs
The following bug has been logged on the website:

Bug reference:      14083
Logged by:          Ian
Email address:      porjo38@yahoo.com.au
PostgreSQL version: 9.5.2
Operating system:   Centos7
Description:

# /usr/pgsql-9.5/bin/postgresql95-setup initdb
Failed to get D-Bus connection: Operation not permitted
failed to find PGDATA setting in postgresql-9.5.service

If I comment out the lines from 'postgresql95-setup' that call 'systemctl',
initdb executes succesfully.

I'm using RPM packages from http://yum.postgresql.org/:

# rpm -qa | grep postgres
postgresql95-libs-9.5.2-1PGDG.rhel7.x86_64
postgresql95-9.5.2-1PGDG.rhel7.x86_64
postgresql95-server-9.5.2-1PGDG.rhel7.x86_64

pgsql-bugs by date:

Previous
From: pgu@mailcatch.com
Date:
Subject: BUG #14084: typo in LIMIT documentation
Next
From: Devrim Gündüz
Date:
Subject: Re: BUG #14083: 'postgresql95-setup initdb' breaks inside docker container