Skip to content

Instantly share code, notes, and snippets.

@sanderpick
Created December 29, 2018 18:34
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 sanderpick/1f00f69af6a4b046364c53816cf508ac to your computer and use it in GitHub Desktop.
Save sanderpick/1f00f69af6a4b046364c53816cf508ac to your computer and use it in GitHub Desktop.
Re-installs a Textile cafe node on Linux
#!/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