]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/nominatim/templates/default/clean-db-nominatim.erb
nominatim: fix erb syntax
[chef.git] / cookbooks / nominatim / templates / default / clean-db-nominatim.erb
index 202240e3f210b85ca5ebe514a8b9dbde230a59ca..2930e151d2465d225db1789ca4d3acd0a8c4299f 100644 (file)
@@ -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