Skip to content

Commit

Permalink
Install daemon system-wide if on El Capitan
Browse files Browse the repository at this point in the history
License: MIT
Signed-off-by: Jonathan Dahan <jonathan@jonathan.is>
  • Loading branch information
Jonathan Dahan committed Dec 17, 2015
1 parent 5ed2322 commit 966cd8b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion misc/launchd/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,10 @@ if [ $? ]; then
fi

echo Loading ipfs-daemon
launchctl load "$dest_dir/$plist"
if [[ `sw_vers -productVersion` == 10.1* ]]; then
sudo chown root "$dest_dir/$plist"
sudo launchctl bootstrap system "$dest_dir/$plist"
else
launchctl load "$dest_dir/$plist"
fi
launchctl list | grep ipfs-daemon

0 comments on commit 966cd8b

Please sign in to comment.