| commit | 48524a3f028ec557c38d668759830d7fbbacf4a9 | [log] [tgz] |
|---|---|---|
| author | Jenkins <jenkins@review.openstack.org> | Tue Nov 20 21:50:55 2012 +0000 |
| committer | Gerrit Code Review <review@openstack.org> | Tue Nov 20 21:50:55 2012 +0000 |
| tree | a2712e94e9135daeeb52106d438f6c065f2865c6 | |
| parent | f8c819b500da64fd1558a8cdb3254c0e233fb93f [diff] | |
| parent | adfc7a3c0aec56030da5369e3598520ba18b3e9c [diff] |
Merge "Re-add postgresql-setup initdb for Fedora"
diff --git a/lib/databases/postgresql b/lib/databases/postgresql index 10ab721..d9c2f00 100644 --- a/lib/databases/postgresql +++ b/lib/databases/postgresql
@@ -23,6 +23,7 @@ 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