forked from hans/Nominatim
fix typo for baseUrl when configuring configuration.txt
use osmosis --read-replication-lag to determine if there are changes before trying to process updates, useful when we are tracking hourly or daily replication updates set CONST_Replication_Recheck_Interval to 60 skip lag check if CONST_Replication_Update_Interval > 60, for minutelies there's always new diffs to process use tabs for indent change sleep for non-minutely updates so that we dont drift tto much or poll excessively unset $aReplicationLag before each exec attempt unset $aReplicationLag inside while loop
This commit is contained in:
@@ -505,7 +505,7 @@
|
||||
|
||||
passthru(CONST_Osmosis_Binary.' --read-replication-interval-init '.CONST_BasePath.'/settings');
|
||||
// update osmosis configuration.txt with our settings
|
||||
passthru("sed -i 's!baseUrl=.*!baseUrL=".CONST_Replication_Url."!' ".CONST_BasePath.'/settings/configuration.txt');
|
||||
passthru("sed -i 's!baseUrl=.*!baseUrl=".CONST_Replication_Url."!' ".CONST_BasePath.'/settings/configuration.txt');
|
||||
passthru("sed -i 's:maxInterval = .*:maxInterval = ".CONST_Replication_MaxInterval.":' ".CONST_BasePath.'/settings/configuration.txt');
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user