From c37a145dc6428b3317b9d3539aea8085be275b2e Mon Sep 17 00:00:00 2001 From: Sarah Hoffmann Date: Sun, 23 Sep 2012 22:03:28 +0200 Subject: [PATCH] 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. --- utils/setup.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/utils/setup.php b/utils/setup.php index 1db725c4..89519194 100755 --- a/utils/setup.php +++ b/utils/setup.php @@ -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); -- 2.45.2