#!/bin/bash mkdir -p $HOME/Library/LaunchAgents cat > $HOME/Library/LaunchAgents/io.parity.ethereum.plist < Label io.parity.ethereum ProgramArguments /usr/local/libexec/parity --mode passive --warp KeepAlive RunAtLoad StandardOutPath $HOME/.parity/log.out StandardErrorPath $HOME/.parity/log.err EOF mkdir -p $HOME/.parity chown $USER $HOME/.parity $HOME/Library/LaunchAgents $HOME/Library/LaunchAgents/io.parity.ethereum.plist su $USER -c "launchctl load $HOME/Library/LaunchAgents/io.parity.ethereum.plist" sleep 1 open http://127.0.0.1:8080/