X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/36447c488a78017dc533f7ed42bc8cf20c72556d..cb06d1f4caa5a2fae5da6748bb38480a306e3ee8:/lib/setup/SetupClass.php?ds=sidebyside diff --git a/lib/setup/SetupClass.php b/lib/setup/SetupClass.php index e618752c..dda49160 100755 --- a/lib/setup/SetupClass.php +++ b/lib/setup/SetupClass.php @@ -148,7 +148,9 @@ class SetupFunctions // (aka we are running from the build dir). $sDest = CONST_InstallDir.'/module'; if ($sDest != CONST_Default_ModulePath) { - mkdir($sDest); + if (!file_exists($sDest)) { + mkdir($sDest); + } if (!copy(CONST_Default_ModulePath.'/nominatim.so', $sDest.'/nominatim.so')) { echo "Failed to copy database module to $sDest."; exit(1); @@ -158,6 +160,8 @@ class SetupFunctions } else { info('Running from build directory. Leaving database module as is.'); } + } else { + info('Using database module from DATABASE_MODULE_PATH ('.getSetting('DATABASE_MODULE_PATH').').'); } // Try accessing the C module, so we know early if something is wrong $this->checkModulePresence(); // raises exception on failure