X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/d6ed0a8d7822828b12aa2c90c6bcc62f780c2fa5..7cea99ce44b5647f474c4fd380ca9c2462d5d398:/cookbooks/web/resources/rails_port.rb?ds=sidebyside 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"