more maintainable/useful install scripts

This commit is contained in:
zramsay
2018-11-14 15:41:14 -05:00
committed by Anton Kaliaev
parent 6353862ac0
commit 814a88a69b
3 changed files with 19 additions and 13 deletions

View File

@ -13,19 +13,21 @@ REPO=github.com/tendermint/tendermint
# change this to a specific release or branch
BRANCH=master
GO_VERSION=1.11.2
sudo apt-get update -y
# get and unpack golang
curl -O https://storage.googleapis.com/golang/go1.11.2.linux-armv6l.tar.gz
tar -xvf go1.11.2.linux-armv6l.tar.gz
curl -O https://storage.googleapis.com/golang/go$GO_VERSION.linux-armv6l.tar.gz
tar -xvf go$GO_VERSION.linux-armv6l.tar.gz
# move go folder and add go binary to path
sudo mv go /usr/local
echo "export PATH=\$PATH:/usr/local/go/bin" >> ~/.profile
# create the goApps directory, set GOPATH, and put it on PATH
mkdir goApps
echo "export GOPATH=$HOME/goApps" >> ~/.profile
# create the go directory, set GOPATH, and put it on PATH
mkdir go
echo "export GOPATH=$HOME/go" >> ~/.profile
echo "export PATH=\$PATH:\$GOPATH/bin" >> ~/.profile
source ~/.profile