update install docs
This commit is contained in:
parent
931e2b5a9b
commit
f12fcfe04a
|
@ -46,23 +46,8 @@ Don't use `apt-get install golang`, it's still on an old version.
|
|||
|
||||
### Install/Update Tendermint
|
||||
|
||||
#!/bin/bash
|
||||
# Run this as tmuser user
|
||||
# This part is for installing Tendermint
|
||||
go install github.com/tendermint/tendermint/cmd/tendermint # install
|
||||
go get -u github.com/tendermint/tendermint/cmd/tendermint # update
|
||||
|
||||
if [ `whoami` != "root" ];
|
||||
then
|
||||
cd
|
||||
source /home/tmuser/.bashrc
|
||||
rm -rf $GOPATH/src/github.com/tendermint/tendermint
|
||||
go get github.com/tendermint/tendermint
|
||||
|
||||
cd $GOPATH/src/github.com/tendermint/tendermint
|
||||
git checkout develop
|
||||
git pull
|
||||
make
|
||||
else
|
||||
echo "should not be root to run update_tendermint.sh"
|
||||
fi
|
||||
|
||||
Finally, head back to [Developer Quick Start](https://github.com/tendermint/tendermint/wiki/Developer-Quick-Start) to compile and run Tendermint.
|
||||
Check out the [Developer Quick Start](https://github.com/tendermint/tendermint/wiki/Developer-Quick-Start) to learn more.
|
||||
|
|
|
@ -8,4 +8,3 @@ useradd tmuser -d /home/tmuser
|
|||
usermod -aG sudo tmuser
|
||||
mkdir /home/tmuser
|
||||
chown -R tmuser /home/tmuser
|
||||
su tmuser
|
||||
|
|
|
@ -15,8 +15,7 @@ then
|
|||
mkdir -p /home/tmuser/go/src
|
||||
echo 'export GOROOT=/home/tmuser/go' >> /home/tmuser/.bashrc
|
||||
echo 'export GOPATH=/home/tmuser/gocode' >> /home/tmuser/.bashrc
|
||||
echo 'export PATH=$PATH:$GOROOT/bin' >> /home/tmuser/.bashrc
|
||||
source /home/tmuser/.bashrc
|
||||
echo 'export PATH=$PATH:$GOROOT/bin:$GOPATH/bin' >> /home/tmuser/.bashrc
|
||||
else
|
||||
echo "should not be root to run install_golang.sh"
|
||||
fi
|
||||
|
|
|
@ -1,19 +0,0 @@
|
|||
#!/bin/bash
|
||||
# Run this as tmuser user
|
||||
# This part is for installing Tendermint
|
||||
|
||||
if [ `whoami` != "root" ];
|
||||
then
|
||||
cd
|
||||
source /home/tmuser/.bashrc
|
||||
rm -rf $GOPATH/src/github.com/tendermint/tendermint
|
||||
go get github.com/tendermint/tendermint
|
||||
|
||||
cd $GOPATH/src/github.com/tendermint/tendermint
|
||||
git checkout develop
|
||||
git pull
|
||||
make
|
||||
else
|
||||
echo "should not be root to run update_tendermint.sh"
|
||||
fi
|
||||
|
Loading…
Reference in New Issue