Reduce connection timeout for outgoing SMTP connections
[chef.git] / cookbooks / web / templates / default / rails.cron.erb
1 #!/bin/sh
2
3 # Cleanup temporary directory
4 if [ -d <%= @directory %>/tmp ]
5 then
6     find <%= @directory %>/tmp \( \( -type f -mtime +28 \) -o \( -type d -empty \) \) -delete
7 fi
8
9 # Cleanup assets
10 if [ -x /usr/local/bin/cleanup-rails-assets ]
11 then
12     /usr/local/bin/cleanup-rails-assets <%= @directory %>
13 fi