aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Hoffman2010-07-11 23:13:26 -0500
committerAdam Vandenberg2010-07-13 07:58:18 -0700
commit7913c09fd4166ad7849ddea556c74750e4279e2c (patch)
tree2b1f30f7c29ee026d5cf95345bc7829597ae2e52
parent0e7a591bdeed569bb8582c66fb38a945ede00f34 (diff)
downloadhomebrew-7913c09fd4166ad7849ddea556c74750e4279e2c.tar.bz2
Have nginx save state between installs
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
-rw-r--r--Library/Formula/nginx.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/Library/Formula/nginx.rb b/Library/Formula/nginx.rb
index 7be9054ff..064f4882c 100644
--- a/Library/Formula/nginx.rb
+++ b/Library/Formula/nginx.rb
@@ -41,7 +41,9 @@ class Nginx < Formula
end
def install
- args = ["--prefix=#{prefix}", "--with-http_ssl_module", "--with-pcre"]
+ args = ["--prefix=#{prefix}", "--with-http_ssl_module", "--with-pcre",
+ "--conf-path=#{etc}/nginx/nginx.conf", "--pid-path=#{var}/run/nginx.pid",
+ "--lock-path=#{var}/nginx/nginx.lock"]
args << passenger_config_args if ARGV.include? '--with-passenger'
system "./configure", *args