From adfc7a3c0aec56030da5369e3598520ba18b3e9c Mon Sep 17 00:00:00 2001 From: Terry Wilson Date: Tue, 20 Nov 2012 13:08:13 -0500 Subject: [PATCH] Re-add postgresql-setup initdb for Fedora The Fedora RPM does not set up the postgresql data directory. postgresql-setup initdb must be run after installing the RPM. Change-Id: I5e5ab659e83f4ee6a024f74a23bf4562ea0065ce --- lib/databases/postgresql | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/databases/postgresql b/lib/databases/postgresql index 10ab721931..d9c2f00c4f 100644 --- a/lib/databases/postgresql +++ b/lib/databases/postgresql @@ -23,6 +23,7 @@ function configure_database_postgresql { if [[ "$os_PACKAGE" = "rpm" ]]; then PG_HBA=/var/lib/pgsql/data/pg_hba.conf PG_CONF=/var/lib/pgsql/data/postgresql.conf + sudo [ -e $PG_HBA ] || sudo postgresql-setup initdb else PG_DIR=`find /etc/postgresql -name pg_hba.conf|xargs dirname` PG_HBA=$PG_DIR/pg_hba.conf