X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/d6ed0a8d7822828b12aa2c90c6bcc62f780c2fa5..cf894718de9117eb4189e78f27e966c3a9b8dc93:/cookbooks/web/resources/rails_port.rb diff --git a/cookbooks/web/resources/rails_port.rb b/cookbooks/web/resources/rails_port.rb index ca3fd8c06..778d24ff4 100644 --- a/cookbooks/web/resources/rails_port.rb +++ b/cookbooks/web/resources/rails_port.rb @@ -334,7 +334,9 @@ action :create do action :nothing end - passenger_application rails_directory + passenger_application rails_directory do + only_if { ::File.exist?("/usr/bin/passenger-config") } + end template "/etc/cron.daily/rails-#{new_resource.site.tr('.', '-')}" do cookbook "web"