Skip to content

Instantly share code, notes, and snippets.

@Rav3nPL
Created April 24, 2020 16:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Rav3nPL/4c99c5dae6c6298feec3db9cdb7b7d16 to your computer and use it in GitHub Desktop.
Save Rav3nPL/4c99c5dae6c6298feec3db9cdb7b7d16 to your computer and use it in GitHub Desktop.
TecraCoin 1.6.1 linux update script
#!/bin/bash
echo "Pobieram tecracoind 1.6.1 z github..."
wget -c -nv https://github.com/tecracoin/tecracoin/releases/download/v1.6.1/tecracoin-1.6.1-x86_64-linux-gnu.tar.gz
echo "Rozpakowuję..."
tar xzf tecracoin-1.6.1-x86_64-linux-gnu.tar.gz
cd tecracoin-1.6.1/bin
./tecracoin-cli clearbanned
sleep 1
./tecracoin-cli stop
echo "Czekam na zamkniecie tecracoind..."
sleep 2
x=1; while [ $x -gt 0 ]; do x=`pgrep tecracoind|wc -l`;echo -ne "."; sleep 2; done
echo "Startuję nowego tecracoind"
sleep 2
./tecracoind
sleep 5
echo "Czekam aż wystartuje (kounikaty błędu z cli)..."
x=1; while [ $x -lt 10 ]; do x=`./tecracoin-cli getinfo|wc -l`; echo -ne "."; sleep 2; done
./tecracoin-cli getinfo
./tecracoin-cli tnode status
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment