Remove use of nonexistent postgresql-setup.

On Ubuntu the default postgresql data directory is not
/var/lib/pgsql/data so the check to see if that directory
exists is not needed. On Fedora we can assume that the rpm will
create it and initialize it properly. So this line can safely
removed without any issues.

Change-Id: If949f0580eb139f3803b698ee88fceebf958448e
This commit is contained in:
Matthew Treinish 2012-11-15 14:14:30 -05:00
parent c1b486a520
commit c3fca08149

View File

@ -28,7 +28,6 @@ function configure_database_postgresql {
PG_HBA=$PG_DIR/pg_hba.conf
PG_CONF=$PG_DIR/postgresql.conf
fi
sudo [ -e /var/lib/pgsql/data ] || sudo postgresql-setup initdb
# Listen on all addresses
sudo sed -i "/listen_addresses/s/.*/listen_addresses = '*'/" $PG_CONF
# Do password auth from all IPv4 clients