X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/23a53661e05761a475a5f032755cca148df24682..851af3db7f54d489df0e6b6e9d16b6ee7d4d98fc:/vagrant-provision.sh diff --git a/vagrant-provision.sh b/vagrant-provision.sh index aad75443..68e279c5 100755 --- a/vagrant-provision.sh +++ b/vagrant-provision.sh @@ -84,8 +84,6 @@ sudo apt-get install -y libprotobuf-c0-dev protobuf-c-compiler \ # now ideally login as $USERNAME and continue su $USERNAME -l -pwd -ls -la /home/vagrant cd /home/vagrant/Nominatim # cd ~/Nominatim @@ -96,6 +94,12 @@ chmod +x ./ chmod +x ./module +LOCALSETTINGS_FILE='settings/local.php' +if [[ -e "$LOCALSETTINGS_FILE" ]]; then + echo "$LOCALSETTINGS_FILE already exist, writing to settings/local-vagrant.php instead." + LOCALSETTINGS_FILE='settings/local-vagrant.php' +fi + # IP=`curl -s http://bot.whatismyipaddress.com` IP=localhost echo " settings/local.php +" > $LOCALSETTINGS_FILE @@ -118,7 +122,7 @@ echo "