]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/taginfo/templates/default/cron.erb
Run taginfo updates from a daily cron job
[chef.git] / cookbooks / taginfo / templates / default / cron.erb
diff --git a/cookbooks/taginfo/templates/default/cron.erb b/cookbooks/taginfo/templates/default/cron.erb
new file mode 100644 (file)
index 0000000..b80cdf8
--- /dev/null
@@ -0,0 +1,9 @@
+# DO NOT EDIT - This file is being maintained by Chef
+
+<% node[:taginfo][:sites].each do |site| -%>
+<% if site[:directory] -%>
+0 1 * * * taginfo <%= site[:directory] %>/bin/update
+<% else -%>
+0 1 * * * taginfo /srv/<%= site[:name] %>/bin/update
+<% end -%>
+<% end -%>