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'
|
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
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue