X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/817e5ba51eb8b8a4fbb5a430139b974a67f601cf..b3f1f45f97ebbe378be8e9e3b09f90aa5e22c0e1:/utils/setup.php diff --git a/utils/setup.php b/utils/setup.php old mode 100755 new mode 100644 index 0d2e6583..8ad96a95 --- a/utils/setup.php +++ b/utils/setup.php @@ -1,11 +1,6 @@ -#!@PHP_BIN@ -Cq indirect via init-cmd.php->/lib/cmd.php for runWithEnv, getCmdOpt -// ->indirect via init-cmd.php->/lib/init.php->db.php for &getDB() - require_once(CONST_BasePath.'/lib/setup/SetupClass.php'); require_once(CONST_BasePath.'/lib/setup_functions.php'); ini_set('memory_limit', '800M'); @@ -89,9 +84,7 @@ if ($aCMDResult['setup-db'] || $aCMDResult['all']) { } // Try accessing the C module, so we know early if something is wrong -if (!checkModulePresence()) { - fail('error loading nominatim.so module'); -} +checkModulePresence(); // raises exception on failure if ($aCMDResult['import-data'] || $aCMDResult['all']) { $bDidSomething = true;