X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/1c848471a16f9d1ee1fc8a327af110447ea1ef4c..56df259055ae541d1f31b8502c549cb84f74778e:/cookbooks/web/recipes/statistics.rb diff --git a/cookbooks/web/recipes/statistics.rb b/cookbooks/web/recipes/statistics.rb index c7bf9e81a..1be580c1e 100644 --- a/cookbooks/web/recipes/statistics.rb +++ b/cookbooks/web/recipes/statistics.rb @@ -19,6 +19,7 @@ include_recipe "web::base" +ruby = "ruby#{node[:passenger][:ruby_version]}" rails_directory = "#{node[:web][:base_directory]}/rails" template "/usr/local/bin/statistics" do @@ -26,7 +27,7 @@ template "/usr/local/bin/statistics" do owner "root" group "root" mode 0755 - variables :directory => rails_directory + variables :ruby => ruby, :directory => rails_directory end template "/etc/cron.d/statistics" do