]> git.openstreetmap.org Git - chef.git/blob - cookbooks/web/templates/default/rails.cron.erb
Merge remote-tracking branch 'github/pull/69'
[chef.git] / cookbooks / web / templates / default / rails.cron.erb
1 #!/bin/sh
2
3 # Cleanup temporary directory
4 find <%= @directory %>/tmp \( \( -type f -mtime +28 \) -o \( -type d -empty \) \) -delete
5
6 # Cleanup assets
7 if [ -x /usr/local/bin/cleanup-rails-assets ]
8 then
9     /usr/local/bin/cleanup-rails-assets <%= @directory %>
10 fi