aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMike McQuaid2013-09-12 17:31:40 +0100
committerMike McQuaid2013-09-12 17:53:22 +0100
commit455fc25e6f2d0e627b44d85af04646eb96748455 (patch)
treecd93c040b4c5a2d24b315e8d72212b5057396c4c /Library
parent508cb709d1a53f34a28c9fe91378bbfeb8ce2b22 (diff)
downloadhomebrew-455fc25e6f2d0e627b44d85af04646eb96748455.tar.bz2
nginx: add configuration test.
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/nginx.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/Library/Formula/nginx.rb b/Library/Formula/nginx.rb
index c0b9ab526..1cf8a33e4 100644
--- a/Library/Formula/nginx.rb
+++ b/Library/Formula/nginx.rb
@@ -118,6 +118,10 @@ class Nginx < Formula
end
end
+ test do
+ system "#{bin}/nginx", '-t'
+ end
+
def passenger_caveats; <<-EOS.undent
To activate Phusion Passenger, add this to #{etc}/nginx/nginx.conf: