aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/jenkins.rb5
1 files changed, 2 insertions, 3 deletions
diff --git a/Library/Formula/jenkins.rb b/Library/Formula/jenkins.rb
index e78399b08..8120dab3e 100644
--- a/Library/Formula/jenkins.rb
+++ b/Library/Formula/jenkins.rb
@@ -20,12 +20,11 @@ class Jenkins < Formula
def caveats; <<-EOS.undent
If this is your first install, automatically load on login with:
mkdir -p ~/Library/LaunchAgents
- cp #{plist_path} ~/Library/LaunchAgents/
+ ln -nfs #{plist_path} ~/Library/LaunchAgents/
launchctl load -w ~/Library/LaunchAgents/#{plist_path.basename}
If this is an upgrade and you already have the #{plist_path.basename} loaded:
launchctl unload -w ~/Library/LaunchAgents/#{plist_path.basename}
- cp #{plist_path} ~/Library/LaunchAgents/
launchctl load -w ~/Library/LaunchAgents/#{plist_path.basename}
Or start it manually:
@@ -44,7 +43,7 @@ class Jenkins < Formula
<array>
<string>/usr/bin/java</string>
<string>-jar</string>
- <string>#{libexec}/jenkins.war</string>
+ <string>#{HOMEBREW_PREFIX}/opt/jenkins/libexec/jenkins.war</string>
<string>--httpListenAddress=127.0.0.1</string>
</array>
<key>RunAtLoad</key>