From 89e0de1041b18e0066ccbc0a5ef669a3ff90df88 Mon Sep 17 00:00:00 2001 From: Eddie Monge Date: Wed, 8 Jan 2014 11:35:19 -0800 Subject: 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 --- Library/Formula/nginx.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Library/Formula') 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" -- cgit v1.2.3