Commit 966cd8b7 authored by Jonathan Dahan's avatar Jonathan Dahan

Install daemon system-wide if on El Capitan

License: MIT
Signed-off-by: default avatarJonathan Dahan <jonathan@jonathan.is>
parent 5ed23227
......@@ -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
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment