]> git.openstreetmap.org Git - chef.git/commitdiff
imagecache: fix script template
authorGrant Slater <git@firefishy.com>
Sat, 4 Apr 2020 21:27:45 +0000 (22:27 +0100)
committerGrant Slater <git@firefishy.com>
Sat, 4 Apr 2020 21:27:45 +0000 (22:27 +0100)
cookbooks/tilecache/templates/default/tilecache-curl-time.erb

index fc401bd99e7893023421ee17b68c700811614736..ca04c54ee7224d08484ab4018768991a2ceb22be 100644 (file)
@@ -14,7 +14,7 @@ mkdir -p /srv/tilecache/data/$(date --utc "+%Y/%m")
     -H 'sec-fetch-mode: no-cors' \
     -H 'referer: https://www.openstreetmap.org/' \
     -H 'accept-language: en-GB,en-US;q=0.9,en;q=0.8' \
-    --compressed | tee -a /srv/tilecache/data/$(date --utc "+%Y/%m")/tilecache-<%= render[:hostname] %>-$(date --utc --iso-8601).txt
+    --compressed | tee -a /srv/tilecache/data/$(date --utc "+%Y/%m")/tilecache-<%= cache[:hostname] %>-$(date --utc --iso-8601).txt
 <% end -%>
 <% end -%>
 <% end -%>