Merge "Re-add postgresql-setup initdb for Fedora"

This commit is contained in:
Jenkins 2012-11-20 21:50:55 +00:00 committed by Gerrit Code Review
commit 48524a3f02

View File

@ -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