aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorEddie Monge2014-01-08 11:35:19 -0800
committerMike McQuaid2014-01-10 23:50:20 +0000
commit89e0de1041b18e0066ccbc0a5ef669a3ff90df88 (patch)
treef30e8d73765da22f6735e73e3dbe1414f9f7a02c /Library/Formula
parent53b70a6512d63cb1471301dbb0c58cb7132d528e (diff)
downloadhomebrew-89e0de1041b18e0066ccbc0a5ef669a3ff90df88.tar.bz2
nginx: fix passenger detection and module location
--root changed to an ini file but the check was looking for a directory Closes #25743. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/nginx.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/Library/Formula/nginx.rb b/Library/Formula/nginx.rb
index f3f4bcecd..e7506df36 100644
--- a/Library/Formula/nginx.rb
+++ b/Library/Formula/nginx.rb
@@ -30,10 +30,10 @@ class Nginx < Formula
skip_clean 'logs'
def passenger_config_args
- passenger_root = `passenger-config --root`.chomp
+ nginx_ext = `passenger-config --nginx-addon-dir`.chomp
- if File.directory?(passenger_root)
- return "--add-module=#{passenger_root}/ext/nginx"
+ if File.directory?(nginx_ext)
+ return "--add-module=#{nginx_ext}"
end
puts "Unable to install nginx with passenger support. The passenger"