mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-02-16 05:18:00 +00:00
patch replication path on --osmosis-init
planet server layout has changed. Patch in the new path to minute replications after having osmosis initialise configuration.txt.
This commit is contained in:
@@ -457,7 +457,12 @@
|
||||
|
||||
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);
|
||||
|
||||
Reference in New Issue
Block a user