]> git.openstreetmap.org Git - nominatim.git/blobdiff - vagrant/Install-on-Centos-7.sh
remove old nominatim.py in favour of 'nominatim index'
[nominatim.git] / vagrant / Install-on-Centos-7.sh
index f26c567c8eaf4bcbe4a152120a1ed120a9a121e9..009152727e3cb7b9150865778ad4023030ddbf5e 100755 (executable)
@@ -42,7 +42,7 @@
                         python3-pip python3-setuptools python3-devel \
                         expat-devel zlib-devel
 
-    pip3 install --user psycopg2
+    pip3 install --user psycopg2 python-dotenv
 
 
 #
@@ -186,14 +186,10 @@ fi                                 #DOCS:
 
 
 # You need to create a minimal configuration file that tells nominatim
-# the name of your webserver user and the URL of the website:
+# the name of your webserver user:
 
 #DOCS:```sh
-tee settings/local.php << EOF
-<?php
- @define('CONST_Database_Web_User', 'apache');
- @define('CONST_Website_BaseURL', '/nominatim/');
-EOF
+echo NOMINATIM_DATABASE_WEBUSER="apache" | tee .env
 #DOCS:```