From 55ccec61a786abe2612d84ef1ab63d696d270088 Mon Sep 17 00:00:00 2001 From: Lee Packham Date: Sun, 25 Jul 2010 19:18:19 +0100 Subject: Make the autologin information correct (by using the cp of the plist to ~/Library/LaunchAgents) Signed-off-by: Adam Vandenberg --- Library/Formula/postgresql.rb | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'Library/Formula/postgresql.rb') 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 -- cgit v1.2.3