Browse code

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

Matthew Treinish authored on 2012/11/16 04:14:30
Showing 1 changed files
... ...
@@ -28,7 +28,6 @@ function configure_database_postgresql {
28 28
         PG_HBA=$PG_DIR/pg_hba.conf
29 29
         PG_CONF=$PG_DIR/postgresql.conf
30 30
     fi
31
-    sudo [ -e /var/lib/pgsql/data ] || sudo postgresql-setup initdb
32 31
     # Listen on all addresses
33 32
     sudo sed -i "/listen_addresses/s/.*/listen_addresses = '*'/" $PG_CONF
34 33
     # Do password auth from all IPv4 clients