diff --git a/Formula/nginx.rb b/Formula/nginx.rb index 891ce81d88..54a5d838be 100644 --- a/Formula/nginx.rb +++ b/Formula/nginx.rb @@ -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