diff options
Diffstat (limited to 'Library/Formula/nginx.rb')
| -rw-r--r-- | Library/Formula/nginx.rb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Library/Formula/nginx.rb b/Library/Formula/nginx.rb index 112fea5d7..411c0f191 100644 --- a/Library/Formula/nginx.rb +++ b/Library/Formula/nginx.rb @@ -56,8 +56,8 @@ class Nginx < Formula system "make install" man8.install "objs/nginx.8" - (prefix+'org.nginx.nginx.plist').write startup_plist - (prefix+'org.nginx.nginx.plist').chmod 0644 + plist_path.write startup_plist + plist_path.chmod 0644 end def caveats; <<-EOS.undent @@ -70,8 +70,8 @@ class Nginx < Formula You can start nginx automatically on login running as your user with: mkdir -p ~/Library/LaunchAgents - cp #{prefix}/org.nginx.nginx.plist ~/Library/LaunchAgents/ - launchctl load -w ~/Library/LaunchAgents/org.nginx.nginx.plist + cp #{plist_path} ~/Library/LaunchAgents/ + launchctl load -w ~/Library/LaunchAgents/#{plist_path.basename} Though note that if running as your user, the launch agent will fail if you try to use a port below 1024 (such as http's default of 80.) @@ -85,7 +85,7 @@ class Nginx < Formula <plist version="1.0"> <dict> <key>Label</key> - <string>org.nginx.nginx</string> + <string>#{plist_name}</string> <key>RunAtLoad</key> <true/> <key>KeepAlive</key> |
