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