#!/bin/bash mkdir -p $HOME/Library/LaunchAgents cat > $HOME/Library/LaunchAgents/io.parity.ethereum.plist < Label io.parity.ethereum ProgramArguments /usr/local/libexec/parity --warp KeepAlive RunAtLoad StandardOutPath $HOME/.parity/log.out StandardErrorPath $HOME/.parity/log.err EOF mkdir -p $HOME/.parity/906a34e69aec8c0d echo -n '{"fat_db":false,"mode":"passive","pruning":"fast","tracing":false}' > $HOME/.parity/906a34e69aec8c0d/user_defaults chown -R $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/