b28eed753ad5b2b261129585a915a39b32f2843f
[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