nginx: use Homebrew passenger.
Closes Homebrew/homebrew#25932. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
This commit is contained in:
parent
c2aa1106ce
commit
159219d99f
1 changed files with 2 additions and 4 deletions
|
@ -27,15 +27,13 @@ class Nginx < Formula
|
|||
skip_clean 'logs'
|
||||
|
||||
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)
|
||||
return "--add-module=#{nginx_ext}"
|
||||
end
|
||||
|
||||
puts "Unable to install nginx with passenger support. The passenger"
|
||||
puts "gem must be installed and passenger-config must be in your path"
|
||||
puts "in order to continue."
|
||||
puts "Unable to install nginx with passenger support."
|
||||
exit
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue