]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/planet/templates/default/old-planet-file-cleanup.cron.erb
Run old planet file cleanup on first Monday of the month.
[chef.git] / cookbooks / planet / templates / default / old-planet-file-cleanup.cron.erb
index 3871d9dfb92a8cfd983f7af789680fd8668865d2..f3983cbdd0c9943049e24a97c3c9a6bafe3ba8dd 100644 (file)
@@ -1,4 +1,4 @@
 # DO NOT EDIT - This file is being maintained by Chef
 MAILTO=zerebubuth@gmail.com
 # run this on the first monday of the month at 3:44am
-44 3 1-7 * mon www-data /usr/local/bin/old-planet-file-cleanup --dry-run --debug
+44 3 1-7 * * www-data test $(date +\%u) -eq 1 && /usr/local/bin/old-planet-file-cleanup --dry-run --debug