diff options
Diffstat (limited to 'Library/Formula/percona-server.rb')
| -rw-r--r-- | Library/Formula/percona-server.rb | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/Library/Formula/percona-server.rb b/Library/Formula/percona-server.rb index 77d3be8ee..5faf277df 100644 --- a/Library/Formula/percona-server.rb +++ b/Library/Formula/percona-server.rb @@ -73,7 +73,7 @@ class PerconaServer < Formula system "make" system "make install" - (prefix+'com.percona.mysqld.plist').write startup_plist + plist_path.write startup_plist # Don't create databases inside of the prefix! # See: https://github.com/mxcl/homebrew/issues/4975 @@ -118,13 +118,13 @@ class PerconaServer < Formula To launch on startup: * if this is your first install: mkdir -p ~/Library/LaunchAgents - cp #{prefix}/com.percona.mysqld.plist ~/Library/LaunchAgents/ - launchctl load -w ~/Library/LaunchAgents/com.percona.mysqld.plist + cp #{plist_path} ~/Library/LaunchAgents/ + launchctl load -w ~/Library/LaunchAgents/#{plist_path.basename} - * if this is an upgrade and you already have the com.percona.mysqld.plist loaded: - launchctl unload -w ~/Library/LaunchAgents/com.percona.mysqld.plist - cp #{prefix}/com.percona.mysqld.plist ~/Library/LaunchAgents/ - launchctl load -w ~/Library/LaunchAgents/com.percona.mysqld.plist + * if this is an upgrade and you already have the #{plist_path} loaded: + launchctl unload -w ~/Library/LaunchAgents/#{plist_path.basename} + cp #{plist_path} ~/Library/LaunchAgents/ + launchctl load -w ~/Library/LaunchAgents/#{plist_path.basename} You may also need to edit the plist to use the correct "UserName". @@ -139,7 +139,7 @@ class PerconaServer < Formula <key>KeepAlive</key> <true/> <key>Label</key> - <string>com.percona.mysqld</string> + <string>#{plist_name}</string> <key>Program</key> <string>#{HOMEBREW_PREFIX}/bin/mysqld_safe</string> <key>RunAtLoad</key> |
