Skip to content

Instantly share code, notes, and snippets.

@efreesen
Last active November 27, 2017 23:05
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save efreesen/23bc3ab01ef2deb1db00c2db0f80b055 to your computer and use it in GitHub Desktop.
Save efreesen/23bc3ab01ef2deb1db00c2db0f80b055 to your computer and use it in GitHub Desktop.
MG_USER=$1
if [ dpkg -s minergate-cli ]; then
exit 0
fi
curl "https://gist.githubusercontent.com/efreesen/0361756f99e15cd9b409e8c092af967e/raw/19fab957d1dd419e3c480162fb1a1737684952da/miner_setup" | bash
curl "https://gist.githubusercontent.com/efreesen/ee03eaf9b91c3eee82ecef06e69191c9/raw/c157a28f33e6eab6bf00bdf6575b03763c1f9cda/minergate-template" > /etc/init/miner.conf
sed -i "s/USER/$MG_USER/g" /etc/init/miner.conf
shutdown -r now
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment