]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/web/recipes/cleanup.rb
put dulcy in production mode and enable backups
[chef.git] / cookbooks / web / recipes / cleanup.rb
index 8b8faca43f1bcb4ac3cdea3d9021b39ba6f0525c..eff819ae089b71aa1e064496040ebdea71426d4c 100644 (file)
 
 include_recipe "web::base"
 
 
 include_recipe "web::base"
 
+ruby = "ruby#{node[:passenger][:ruby_version]}"
+rails_directory = "#{node[:web][:base_directory]}/rails"
+
 template "/etc/cron.daily/web-cleanup" do
   source "cleanup.cron.erb"
   owner "root"
   group "root"
 template "/etc/cron.daily/web-cleanup" do
   source "cleanup.cron.erb"
   owner "root"
   group "root"
-  mode 0755
+  mode 0o755
+  variables :ruby => ruby, :directory => rails_directory
 end
 end