]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/tile/templates/default/cleanup-tiles.cron.erb
Add a cron job to cleanup old tiles
[chef.git] / cookbooks / tile / templates / default / cleanup-tiles.cron.erb
diff --git a/cookbooks/tile/templates/default/cleanup-tiles.cron.erb b/cookbooks/tile/templates/default/cleanup-tiles.cron.erb
new file mode 100644 (file)
index 0000000..7c235a9
--- /dev/null
@@ -0,0 +1,5 @@
+# DO NOT EDIT - This file is being maintained by Chef
+
+<% @directories.each do |directory| -%>
+0 1 * * * www-data ionice -c 3 /usr/local/bin/cleanup-tiles <%= directory %>
+<% end -%>