X-Git-Url: https://git.openstreetmap.org/chef.git/blobdiff_plain/8aa57233f9034b901d7a652bd6276d0d7c3ea4f0..a19f614c86504b80dd424b5cbca80d55806e00d1:/cookbooks/nominatim/templates/default/clean-db-nominatim.erb?ds=sidebyside diff --git a/cookbooks/nominatim/templates/default/clean-db-nominatim.erb b/cookbooks/nominatim/templates/default/clean-db-nominatim.erb index 202240e3f..2930e151d 100644 --- a/cookbooks/nominatim/templates/default/clean-db-nominatim.erb +++ b/cookbooks/nominatim/templates/default/clean-db-nominatim.erb @@ -15,8 +15,8 @@ done # Cleanup archive directory oldest=`date +%s` -for fl in <% @streaming_clients %>; do - lastupdate=`wget -O - -q http://$fl/last_update.php` +for fl in <%= @streaming_clients %>; do + lastupdate=`wget -O - -q http://${fl}.openstreetmap.org/last_update.php` if [[ "$?" != "0" ]]; then oldest=0 break