From f94333ce4fe68657001e5f0e2e34817102865d15 Mon Sep 17 00:00:00 2001 From: Carlos Rodriguez Date: Sun, 27 Feb 2011 00:07:58 -0800 Subject: Clean up LaunchAgent caveats. Documentation now has instructions on creating ~/Library/LaunchAgents directory for first time installs of Formulas. Appending trailing slash to Formula documentation in regards to copying plists to LaunchAgents directory. Signed-off-by: Adam Vandenberg --- Library/Formula/postgresql.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'Library/Formula/postgresql.rb') diff --git a/Library/Formula/postgresql.rb b/Library/Formula/postgresql.rb index d01ae65cc..a3dd8b966 100644 --- a/Library/Formula/postgresql.rb +++ b/Library/Formula/postgresql.rb @@ -100,12 +100,13 @@ If this is your first install, create a database with: initdb #{var}/postgres If this is your first install, automatically load on login with: - cp #{prefix}/org.postgresql.postgres.plist ~/Library/LaunchAgents + mkdir -p ~/Library/LaunchAgents + cp #{prefix}/org.postgresql.postgres.plist ~/Library/LaunchAgents/ launchctl load -w ~/Library/LaunchAgents/org.postgresql.postgres.plist If this is an upgrade and you already have the org.postgresql.postgres.plist loaded: launchctl unload -w ~/Library/LaunchAgents/org.postgresql.postgres.plist - cp #{prefix}/org.postgresql.postgres.plist ~/Library/LaunchAgents + cp #{prefix}/org.postgresql.postgres.plist ~/Library/LaunchAgents/ launchctl load -w ~/Library/LaunchAgents/org.postgresql.postgres.plist Or start manually with: -- cgit v1.2.3