]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/web/templates/default/rails.cron.erb
Disable gpximport, statistics and cleanup roles on spike-04
[chef.git] / cookbooks / web / templates / default / rails.cron.erb
index 7945c3dea22b22d6c5adc7a6d34690e8272dcb93..e34880f36ec537d5a243dd7e792aa09da711347f 100644 (file)
@@ -1,4 +1,7 @@
 #!/bin/sh
 
 # Cleanup temporary directory
-find <%= @directory %>/tmp -mtime +28 -print0 | xargs -0r rm
+find <%= @directory %>/tmp \( \( -type f -mtime +28 \) -o \( -type d -empty \) \) -delete
+
+# Cleanup assets
+/usr/local/bin/cleanup-rails-assets <%= @directory %>