aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/tor.rb
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Formula/tor.rb')
-rw-r--r--Library/Formula/tor.rb10
1 files changed, 5 insertions, 5 deletions
diff --git a/Library/Formula/tor.rb b/Library/Formula/tor.rb
index d25fc4b7c..c3654391a 100644
--- a/Library/Formula/tor.rb
+++ b/Library/Formula/tor.rb
@@ -12,8 +12,8 @@ class Tor < Formula
"--prefix=#{prefix}"
system "make install"
- (prefix+'org.tor.plist').write startup_plist
- (prefix+'org.tor.plist').chmod 0644
+ plist_path.write startup_plist
+ plist_path.chmod 0644
end
def startup_plist
@@ -23,7 +23,7 @@ class Tor < Formula
<plist version="1.0">
<dict>
<key>Label</key>
- <string>org.tor</string>
+ <string>#{plist_name}</string>
<key>RunAtLoad</key>
<true/>
<key>KeepAlive</key>
@@ -44,8 +44,8 @@ class Tor < Formula
def caveats; <<-EOS.undent
You can start tor automatically on login with:
mkdir -p ~/Library/LaunchAgents
- cp #{prefix}/org.tor.plist ~/Library/LaunchAgents/
- launchctl load -w ~/Library/LaunchAgents/org.tor.plist
+ cp #{plist_path} ~/Library/LaunchAgents/
+ launchctl load -w ~/Library/LaunchAgents/#{plist_path.basename}
EOS
end
end