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
diff --git a/lib/databases/postgresql b/lib/databases/postgresql
index ee24c8b..10ab721 100644
--- a/lib/databases/postgresql
+++ b/lib/databases/postgresql
@@ -28,7 +28,6 @@
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