]> git.openstreetmap.org Git - nominatim.git/commitdiff
Merge remote-tracking branch 'upstream/master'
authorSarah Hoffmann <lonvia@denofr.de>
Wed, 29 Jul 2020 07:29:18 +0000 (09:29 +0200)
committerSarah Hoffmann <lonvia@denofr.de>
Wed, 29 Jul 2020 07:29:18 +0000 (09:29 +0200)
1  2 
utils/update.php

diff --combined utils/update.php
index dd0dc6d03e45facd5341a4563053324c731eba30,cba58d3119180009b8b12a00d83ef48d659c1d53..30c4ae46b93dd03cc00fd428fdd22d86f6184fd8
@@@ -49,7 -49,6 +49,7 @@@ $aCMDOption
  getCmdOpt($_SERVER['argv'], $aCMDOptions, $aResult, true, true);
  
  if (!isset($aResult['index-instances'])) $aResult['index-instances'] = 1;
 +
  if (!isset($aResult['index-rank'])) $aResult['index-rank'] = 0;
  
  date_default_timezone_set('Etc/UTC');
@@@ -104,7 -103,9 +104,9 @@@ $oIndexCmd = (new \Nominatim\Shell(CONS
               ->addParams('--database', $aDSNInfo['database'])
               ->addParams('--port', $aDSNInfo['port'])
               ->addParams('--threads', $aResult['index-instances']);
+ if (!$aResult['quiet']) {
+     $oIndexCmd->addParams('--verbose');
+ }
  if ($aResult['verbose']) {
      $oIndexCmd->addParams('--verbose');
  }
@@@ -152,7 -153,6 +154,6 @@@ if ($aResult['init-updates']) 
                                        'enable-diff-updates' => true,
                                        'verbose' => $aResult['verbose']
                                       ));
-         $cSetup->connect();
          $cSetup->createFunctions();
      }