X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/18e12b0e123fc3e5f344682f884feabc12da0f5a..35fab8a036e32f87e2ea96de0502b903a1c978e1:/cookbooks/web/recipes/cleanup.rb diff --git a/cookbooks/web/recipes/cleanup.rb b/cookbooks/web/recipes/cleanup.rb index bd042de03..9ce886114 100644 --- a/cookbooks/web/recipes/cleanup.rb +++ b/cookbooks/web/recipes/cleanup.rb @@ -1,8 +1,8 @@ # -# Cookbook Name:: web +# Cookbook:: web # Recipe:: cleanup # -# Copyright 2013, OpenStreetMap Foundation +# Copyright:: 2013, OpenStreetMap Foundation # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -19,13 +19,13 @@ include_recipe "web::base" -ruby = "ruby#{node[:passenger][:ruby_version]}" +ruby = "ruby#{node[:ruby][:version]}" rails_directory = "#{node[:web][:base_directory]}/rails" template "/etc/cron.daily/web-cleanup" do source "cleanup.cron.erb" owner "root" group "root" - mode 0o755 + mode "755" variables :ruby => ruby, :directory => rails_directory end