]> git.openstreetmap.org Git - nominatim.git/commitdiff
patch replication path on --osmosis-init
authorSarah Hoffmann <lonvia@denofr.de>
Sun, 23 Sep 2012 20:03:28 +0000 (22:03 +0200)
committerSarah Hoffmann <lonvia@denofr.de>
Sun, 23 Sep 2012 20:03:28 +0000 (22:03 +0200)
planet server layout has changed. Patch in the new path to
minute replications after having osmosis initialise configuration.txt.

utils/setup.php

index 1db725c466f23b8c826069d2a662cc021ea9d5a6..89519194a9727d7ec0f76b022c8d36586688ad84 100755 (executable)
 
                if (!file_exists(CONST_Osmosis_Binary)) fail("please download osmosis");
                if (file_exists(CONST_BasePath.'/settings/configuration.txt')) echo "settings/configuration.txt already exists\n";
-               else passthru(CONST_Osmosis_Binary.' --read-replication-interval-init '.CONST_BasePath.'/settings');
+               else
+               {
+                       passthru(CONST_Osmosis_Binary.' --read-replication-interval-init '.CONST_BasePath.'/settings');
+                       // server layout changed afer license change, fix path to minutely diffs
+                       passthru("sed -i 's:minute-replicate:replication/minute:' ".CONST_BasePath.'/settings/configuration.txt');
+               }
 
                $sDate = $aCMDResult['osmosis-init-date'];
                $aDate = date_parse_from_format("Y-m-d\TH-i", $sDate);