Created
May 14, 2019 11:59
-
-
Save dmytrostriletskyi/31e0b32b035b74a9d9eda31004ca6af3 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
#!/bin/bash | |
if [ "$1" = "0.10.0-alpha" ]; then | |
cd /home/remme-core-$1 | |
make stop | |
make clean_chain_data | |
make run_bg_user | |
else | |
echo "$1" | |
curl https://gist.githubusercontent.com/dmytrostriletskyi/ddb0d8fc16512523f4942a2d60b57c63/raw/63de05cc7f68801bb6887fc07463422810276a10/upgrade-node.sh > ~/upgrade-node.sh | |
chmod +x ~/upgrade-node.sh | |
~/./upgrade-node.sh $1 0.10.0-alpha | |
cd /home/remme-core-0.10.0-alpha | |
make stop | |
make clean_chain_data | |
make run_bg_user | |
sudo sed -i '/REMME_CORE_RELEASE/d' ~/.bashrc | |
echo "REMME_CORE_RELEASE=0.10.0-alpha" >> ~/.bashrc | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment