]> git.openstreetmap.org Git - nominatim.git/blobdiff - vagrant/Install-on-Centos-7.sh
Vagrant setup for CentOS 8
[nominatim.git] / vagrant / Install-on-Centos-7.sh
index f3debd8b25324110d7c3ffdb3b52ad0476705274..97d3e796646469be823d9ffadc6a5b1ddc3c9b45 100755 (executable)
                         proj-epsg bzip2-devel proj-devel boost-devel \
                         expat-devel zlib-devel
 
+    # make sure pg_config gets found
+    echo 'PATH=/usr/pgsql-11/bin/$PATH' >> ~/.bash_profile
+    source ~/.bash_profile
+
 # If you want to run the test suite, you need to install the following
 # additional packages:
 
@@ -85,9 +89,6 @@ sudo chown vagrant /srv/nominatim  #DOCS:
 # CentOS does not automatically create a database cluster. Therefore, start
 # with initializing the database, then enable the server to start at boot:
 
-    echo 'PATH=$PATH:/usr/pgsql-11/bin' > .bash_profile
-    source .bash_profile
-
     sudo /usr/pgsql-11/bin/postgresql-11-setup initdb
     sudo systemctl enable postgresql-11