diff options
Diffstat (limited to 'Library/Formula/openvpn.rb')
| -rw-r--r-- | Library/Formula/openvpn.rb | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/Library/Formula/openvpn.rb b/Library/Formula/openvpn.rb index 9d0732fce..308a1c500 100644 --- a/Library/Formula/openvpn.rb +++ b/Library/Formula/openvpn.rb @@ -36,8 +36,8 @@ class Openvpn < Formula (var + 'run/openvpn').mkpath # Write the launchd script - (prefix + 'org.openvpn.plist').write startup_plist - (prefix + 'org.openvpn.plist').chmod 0644 + plist_path.write startup_plist + plist_path.chmod 0644 end def caveats; <<-EOS @@ -58,12 +58,12 @@ For OpenVPN to work as a server, you will need to do the following: 2) Install the launchd item in /Library/LaunchDaemons, like so: - sudo cp -vf #{prefix}/org.openvpn.plist /Library/LaunchDaemons/. - sudo chown -v root:wheel /Library/LaunchDaemons/org.openvpn.plist + sudo cp -vf #{plist_path} /Library/LaunchDaemons/. + sudo chown -v root:wheel /Library/LaunchDaemons/#{plist_path.basename} 3) Start the daemon using: - sudo launchctl load /Library/LaunchDaemons/org.openvpn.plist + sudo launchctl load /Library/LaunchDaemons/#{plist_path.basename} Next boot of system will automatically start OpenVPN. EOS @@ -76,7 +76,7 @@ EOS <plist version="1.0"> <dict> <key>Label</key> - <string>org.openvpn</string> + <string>#{plist_name}</string> <key>ProgramArguments</key> <array> <string>#{HOMEBREW_PREFIX}/sbin/openvpn</string> |
