X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/0947b618085f7d46515a3ec06cab5ed818e8635f..433017b9907c8348a48ef1a9fa7669e3d9523f1b:/utils/update.php diff --git a/utils/update.php b/utils/update.php index 7f9b7a2d..931ca179 100644 --- a/utils/update.php +++ b/utils/update.php @@ -41,11 +41,14 @@ $aCMDOptions array('recompute-word-counts', '', 0, 1, 0, 0, 'bool', 'Compute frequency of full-word search terms'), array('update-address-levels', '', 0, 1, 0, 0, 'bool', 'Reimport address level configuration (EXPERT)'), - array('recompute-importance', '', 0, 1, 0, 0, 'bool', 'Recompute place importances') + array('recompute-importance', '', 0, 1, 0, 0, 'bool', 'Recompute place importances'), + + array('project-dir', '', 0, 1, 1, 1, 'realpath', 'Base directory of the Nominatim installation (default: .)'), ); getCmdOpt($_SERVER['argv'], $aCMDOptions, $aResult, true, true); +loadSettings($aCMDResult['project-dir'] ?? getcwd()); setupHTTPProxy(); if (!isset($aResult['index-instances'])) $aResult['index-instances'] = 1;