]> 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 5ec99b81eb2a8164251a12b1888cdc4b0e50ceb5..e28053be7ac0270a00f778d7a103220fa00eafdc 100755 (executable)
@@ -1,6 +1,8 @@
 <?php
 
-require_once(CONST_BasePath.'/lib/init-cmd.php');
+require_once(CONST_LibDir.'/init-cmd.php');
+
+loadSettings(getcwd());
 
 $term_colors = array(
                 'green' => "\033[92m",
@@ -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();