aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/postgresql.rb
diff options
context:
space:
mode:
authorLee Packham2010-07-25 19:18:19 +0100
committerAdam Vandenberg2010-07-25 11:26:38 -0700
commit55ccec61a786abe2612d84ef1ab63d696d270088 (patch)
treef95bc51095a3db7fb48cdc63081090ab94937673 /Library/Formula/postgresql.rb
parentb460166baf5ae1c6419176ef1b18c0e64fab9b9a (diff)
downloadhomebrew-55ccec61a786abe2612d84ef1ab63d696d270088.tar.bz2
Make the autologin information correct (by using the cp of the plist to ~/Library/LaunchAgents)
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula/postgresql.rb')
-rw-r--r--Library/Formula/postgresql.rb10
1 files changed, 8 insertions, 2 deletions
diff --git a/Library/Formula/postgresql.rb b/Library/Formula/postgresql.rb
index 24819d4ee..b0739911a 100644
--- a/Library/Formula/postgresql.rb
+++ b/Library/Formula/postgresql.rb
@@ -102,8 +102,14 @@ See:
If this is your first install, create a database with:
initdb #{var}/postgres
-Automatically load on login with:
- launchctl load -w #{prefix}/org.postgresql.postgres.plist
+If this is your first install, automatically load on login with:
+ cp #{prefix}/org.postgresql.postgres.plist ~/Library/LaunchAgents
+ launchctl load -w ~/Library/LaunchAgents/com.mysql.mysqld.plist
+
+If this is an upgrade and you already have the com.mysql.mysqld.plist loaded:
+ launchctl unload -w ~/Library/LaunchAgents/org.postgresql.postgres.plist
+ cp #{prefix}/org.postgresql.postgres.plist ~/Library/LaunchAgents
+ launchctl load -w ~/Library/LaunchAgents/org.postgresql.postgres.plist
Or start manually with:
pg_ctl -D #{var}/postgres -l #{var}/postgres/server.log start