Last active
November 27, 2017 23:05
-
-
Save efreesen/23bc3ab01ef2deb1db00c2db0f80b055 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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