]> git.openstreetmap.org Git - nominatim.git/blobdiff - utils/update.php
replace database settings with dotenv variant
[nominatim.git] / utils / update.php
index ff8b0c002465fceb6610c7b6ff9b23e8952ce789..9b68ecdb35a51b586fad7aca0328fa6cfff241eb 100644 (file)
@@ -57,7 +57,7 @@ $oDB = new Nominatim\DB();
 $oDB->connect();
 $fPostgresVersion = $oDB->getPostgresVersion();
 
-$aDSNInfo = Nominatim\DB::parseDSN(CONST_Database_DSN);
+$aDSNInfo = Nominatim\DB::parseDSN(getSetting('DATABASE_DSN'));
 if (!isset($aDSNInfo['port']) || !$aDSNInfo['port']) $aDSNInfo['port'] = 5432;
 
 // cache memory to be used by osm2pgsql, should not be more than the available memory