]> git.openstreetmap.org Git - nominatim.git/commitdiff
better osmosis error message
authorBrian Quinion <brian.quinion@mapquest.com>
Wed, 3 Apr 2013 16:03:39 +0000 (17:03 +0100)
committerBrian Quinion <brian.quinion@mapquest.com>
Wed, 3 Apr 2013 16:03:39 +0000 (17:03 +0100)
utils/setup.php

index 5ec22dd0947023aaca96d8f5f9cbeac1f3f97254..3f2e6d05d1a083089c7f9b1e70ce1ef52b85e933 100755 (executable)
                $bDidSomething = true;
                $oDB =& getDB();
 
-               if (!file_exists(CONST_Osmosis_Binary)) fail("please download osmosis");
+               if (!file_exists(CONST_Osmosis_Binary))
+               {
+                       echo "Please download osmosis.\nIf it is already installed, check the path in your local settings (settings/local.php) file.\n";
+                       fail("osmosis not found in '".CONST_Osmosis_Binary."'");
+               }
                if (file_exists(CONST_BasePath.'/settings/configuration.txt'))
                {
                        echo "settings/configuration.txt already exists\n";
                }
                else
                {
-                       
                        passthru(CONST_Osmosis_Binary.' --read-replication-interval-init '.CONST_BasePath.'/settings');
                        // update osmosis configuration.txt with our settings
                        passthru("sed -i 's!baseUrl=.*!baseUrl=".CONST_Replication_Url."!' ".CONST_BasePath.'/settings/configuration.txt');