aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMax Howell2013-04-12 17:08:26 -0400
committerMax Howell2013-04-12 17:08:26 -0400
commit7b030e8516a4fecd2c1dc39df7f2b9c87e38fdf0 (patch)
treef441a919c628152f9097375baf30d15a727522d7 /Library
parent3085c4033d5e534ded3d38326db5cfcdef3416bb (diff)
downloadhomebrew-7b030e8516a4fecd2c1dc39df7f2b9c87e38fdf0.tar.bz2
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.
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/nginx.rb4
1 files changed, 2 insertions, 2 deletions
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
<false/>
<key>ProgramArguments</key>
<array>
- <string>#{opt_prefix}/sbin/nginx</string>
+ <string>#{opt_prefix}/bin/nginx</string>
<string>-g</string>
<string>daemon off;</string>
</array>