X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/e4cd927b82f71acc58af48b9eb5757711c5e683b..cdb2f6f01940242c613b6c1d31332598dec7d625:/cookbooks/web/definitions/rails_port.rb diff --git a/cookbooks/web/definitions/rails_port.rb b/cookbooks/web/definitions/rails_port.rb index cbc967e4d..616f4dd18 100644 --- a/cookbooks/web/definitions/rails_port.rb +++ b/cookbooks/web/definitions/rails_port.rb @@ -74,6 +74,7 @@ define :rails_port, :action => [:create, :enable] do command "passenger-config restart-app #{rails_directory}" user "root" group "root" + only_if { File.exist?("/usr/bin/passenger-config") } end file "#{rails_directory}/public/export/embed.html" do