]> git.openstreetmap.org Git - nominatim.git/commitdiff
allow to pass an additional config file via NOMINATIM_SETTINGS variable to command...
authorSarah Hoffmann <lonvia@denofr.de>
Sat, 15 Feb 2014 17:49:05 +0000 (18:49 +0100)
committerSarah Hoffmann <lonvia@denofr.de>
Sat, 15 Feb 2014 17:49:05 +0000 (18:49 +0100)
needed for test environment

lib/init-cmd.php

index 7558efd92f123c55fe01028ec83cffe618588c25..c36f0e577b0f76bdee623118065675fd678b5575 100644 (file)
@@ -1,4 +1,9 @@
 <?php
+       if (file_exists(getenv('NOMINATIM_SETTINGS')))
+       {
+               echo 'Using local config: '.getenv('NOMINATIM_SETTINGS');
+               require_once(getenv('NOMINATIM_SETTINGS'));
+       }
 
        require_once('init.php');
        require_once('cmd.php');