Change cherokee plist install location and instructions to that of /Library

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
This commit is contained in:
Chris Hoffman 2010-06-26 12:32:24 -05:00 committed by Adam Vandenberg
parent 8b75309a95
commit c1df0977a7

View file

@ -20,13 +20,13 @@ class Cherokee <Formula
for logging and runtime files.
If this is your first install, automatically load on startup with:
cp #{prefix}/org.cherokee.webserver.plist ~/Library/LaunchDaemons
launchctl load -w ~/Library/LaunchDaemons/org.cherokee.webserver.plist
sudo cp #{prefix}/org.cherokee.webserver.plist /Library/LaunchDaemons
sudo launchctl load -w /Library/LaunchDaemons/org.cherokee.webserver.plist
If this is an upgrade and you already have the plist loaded:
launchctl unload -w ~/Library/LaunchDaemons/org.cherokee.webserver.plist
cp #{prefix}/org.cherokee.webserver.plist ~/Library/LaunchDaemons
launchctl load -w ~/Library/LaunchDaemons/org.cherokee.webserver.plist
sudo launchctl unload -w /Library/LaunchDaemons/org.cherokee.webserver.plist
sudo cp #{prefix}/org.cherokee.webserver.plist /Library/LaunchDaemons
sudo launchctl load -w /Library/LaunchDaemons/org.cherokee.webserver.plist
EOS
end