X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/06d89e1d470c2b95dee7925dca25643a6afc9882..04690ad8c4734c15efc920bc0dab59cf78e3e7cb:/lib/setup/SetupClass.php diff --git a/lib/setup/SetupClass.php b/lib/setup/SetupClass.php index 850ff297..92c36bf3 100755 --- a/lib/setup/SetupClass.php +++ b/lib/setup/SetupClass.php @@ -42,7 +42,7 @@ class SetupFunctions $this->iCacheMemory = getCacheMemoryMB(); } - $this->sModulePath = getSetting('DATABASE_MODULE_PATH', CONST_InstallDir.'/module'); + $this->sModulePath = getSetting('DATABASE_MODULE_PATH', CONST_Default_ModulePath); info('module path: ' . $this->sModulePath); // parse database string @@ -706,31 +706,57 @@ class SetupFunctions } /** - * Setup settings-frontend.php in the build/website directory + * Setup the directory for the API scripts. * * @return null */ public function setupWebsite() { - $rOutputFile = fopen(CONST_InstallDir.'/settings/settings-frontend.php', 'w'); - - fwrite($rOutputFile, "