diff db_schema/Dockerfile @ 1162:e0a959e652c4 pgaudit

Remove creation of unused superuser and create missing directory.
author Tom Gottfried <tom@intevation.de>
date Tue, 08 Nov 2016 19:22:48 +0100
parents ea6b062e5305
children eefd0ca9e42f
line wrap: on
line diff
--- a/db_schema/Dockerfile	Tue Nov 08 19:21:24 2016 +0100
+++ b/db_schema/Dockerfile	Tue Nov 08 19:22:48 2016 +0100
@@ -64,8 +64,10 @@
 #
 USER postgres
 
-RUN /etc/init.d/postgresql start && \
-    psql --command "CREATE USER admin WITH SUPERUSER PASSWORD 'secret';"
+# XXX: Seems to fail on initdb issued by package installation
+# (due to /usr/sbin/policy-rc.d ?).
+# See also https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=739276
+RUN mkdir /var/run/postgresql/9.5-main.pg_stat_tmp
 
 #
 # Adjust PostgreSQL configuration so that remote connections to the
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)