From 7b030e8516a4fecd2c1dc39df7f2b9c87e38fdf0 Mon Sep 17 00:00:00 2001
From: Max Howell
Date: Fri, 12 Apr 2013 17:08:26 -0400
Subject: Don’t call non-existent functions; Fixes #19133
I did test this, but then I broke it and didn't test it again.
Also corrects the plist binary location. Since I changed that from sbin to bin.---
Library/Formula/nginx.rb | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
(limited to 'Library')
diff --git a/Library/Formula/nginx.rb b/Library/Formula/nginx.rb
index 28e0e20e5..3e308bfd4 100644
--- a/Library/Formula/nginx.rb
+++ b/Library/Formula/nginx.rb
@@ -76,8 +76,8 @@ class Nginx < Formula
prefix.cd do
dst = HOMEBREW_PREFIX/"var/www"
if not dst.exist?
+ dst.dirname.mkpath
mv "html", dst
- dst.dirname.mkdir_p
else
rm_rf "html"
dst.mkpath
@@ -111,7 +111,7 @@ class Nginx < Formula
ProgramArguments
- #{opt_prefix}/sbin/nginx
+ #{opt_prefix}/bin/nginx
-g
daemon off;
--
cgit v1.2.3