Don’t call non-existent functions; Fixes Homebrew/homebrew#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.master
parent
fa5735952d
commit
4f985bb4e6
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue