diff options
Diffstat (limited to 'Library/Formula/pgbouncer.rb')
| -rw-r--r-- | Library/Formula/pgbouncer.rb | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/Library/Formula/pgbouncer.rb b/Library/Formula/pgbouncer.rb index 92abe87d9..971835532 100644 --- a/Library/Formula/pgbouncer.rb +++ b/Library/Formula/pgbouncer.rb @@ -16,8 +16,8 @@ class Pgbouncer < Formula bin.install "etc/mkauth.py" etc.install %w(etc/pgbouncer.ini etc/userlist.txt) - (prefix+'org.postgresql.pgbouncer.plist').write startup_plist - (prefix+'org.postgresql.pgbouncer.plist').chmod 0644 + plist_path.write startup_plist + plist_path.chmod 0644 end def caveats @@ -31,14 +31,14 @@ can be populated by the #{bin}/mkauth.py script. If this is your first install, automatically load on login with: mkdir -p ~/Library/LaunchAgents - cp #{prefix}/org.postgresql.pgbouncer.plist ~/Library/LaunchAgents/ - launchctl load -w ~/Library/LaunchAgents/org.postgresql.pgbouncer.plist + cp #{plist_path} ~/Library/LaunchAgents/ + launchctl load -w ~/Library/LaunchAgents/#{plist_path.basename} -If this is an upgrade and you already have the org.postgresql.pgbouncer.plist +If this is an upgrade and you already have the #{plist_path} loaded: - launchctl unload -w ~/Library/LaunchAgents/org.postgresql.pgbouncer.plist - cp #{prefix}/org.postgresql.pgbouncer.plist ~/Library/LaunchAgents/ - launchctl load -w ~/Library/LaunchAgents/org.postgresql.pgbouncer.plist + launchctl unload -w ~/Library/LaunchAgents/#{plist_path.basename} + cp #{plist_path} ~/Library/LaunchAgents/ + launchctl load -w ~/Library/LaunchAgents/#{plist_path.basename} Or start manually with: pgbouncer -q #{etc}/pgbouncer.ini @@ -54,7 +54,7 @@ Or start manually with: <key>KeepAlive</key> <true/> <key>Label</key> - <string>org.postgresql.pgbouncer</string> + <string>#{plist_name}</string> <key>ProgramArguments</key> <array> <string>#{HOMEBREW_PREFIX}/bin/pgbouncer</string> |
