nginx: use Homebrew passenger.

Closes Homebrew/homebrew#25932.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
This commit is contained in:
Hongli Lai (Phusion) 2014-01-16 00:11:46 +01:00 committed by Mike McQuaid
parent c2aa1106ce
commit 159219d99f

View file

@ -27,15 +27,13 @@ class Nginx < Formula
skip_clean 'logs' skip_clean 'logs'
def passenger_config_args def passenger_config_args
nginx_ext = `passenger-config --nginx-addon-dir`.chomp nginx_ext = `/usr/bin/ruby #{HOMEBREW_PREFIX}/opt/passenger/bin/passenger-config --nginx-addon-dir`.chomp
if File.directory?(nginx_ext) if File.directory?(nginx_ext)
return "--add-module=#{nginx_ext}" return "--add-module=#{nginx_ext}"
end end
puts "Unable to install nginx with passenger support. The passenger" puts "Unable to install nginx with passenger support."
puts "gem must be installed and passenger-config must be in your path"
puts "in order to continue."
exit exit
end end