]> git.openstreetmap.org Git - nominatim.git/blobdiff - utils/check_import_finished.php
switch all utils to initialising dotenv
[nominatim.git] / utils / check_import_finished.php
index 1eb012d475182d60ac36dff9aa0f9d8fdcfcd101..e28053be7ac0270a00f778d7a103220fa00eafdc 100755 (executable)
@@ -2,6 +2,8 @@
 
 require_once(CONST_LibDir.'/init-cmd.php');
 
+loadSettings(getcwd());
+
 $term_colors = array(
                 'green' => "\033[92m",
                 'red' => "\x1B[31m",
@@ -35,7 +37,7 @@ if ($oDB->checkConnection()) {
     echo <<< END
     Hints:
     * Is the database server started?
-    * Check the CONST_Database_DSN variable in build/settings/local.php
+    * Check the NOMINATIM_DATABASE_DSN variable in your local .env
     * Try connecting to the database with the same settings
 
 END;
@@ -166,7 +168,7 @@ END;
 
 
 
-if (CONST_Use_US_Tiger_Data) {
+if (getSettingBool('USE_US_TIGER_DATA')) {
     echo 'Checking TIGER table exists ... ';
     if ($oDB->tableExists('location_property_tiger')) {
         $print_success();