Created
December 29, 2018 18:34
-
-
Save sanderpick/1f00f69af6a4b046364c53816cf508ac to your computer and use it in GitHub Desktop.
Re-installs a Textile cafe node on Linux
This file contains 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
#!/usr/bin/env bash | |
set -e | |
while getopts r: option | |
do | |
case "${option}" | |
in | |
r) RELEASE=${OPTARG};; | |
esac | |
done | |
[[ -z "$RELEASE" ]] && { echo "Please specify a release tag, e.g., -r v1.0.0" ; exit 1; } | |
# install | |
wget https://github.com/textileio/textile-go/releases/download/"$RELEASE"/textile-go_"$RELEASE"_linux-amd64.tar.gz | |
tar xvfz textile-go_"$RELEASE"_linux-amd64.tar.gz | |
rm textile-go_"$RELEASE"_linux-amd64.tar.gz | |
sudo ./install.sh | |
sudo systemctl restart textile | |
# echo new node info | |
sleep 5 | |
echo "version:" $(textile version) | |
echo "peer: " $(textile peer) | |
echo "address:" $(textile address) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment