add bitcoin install

This commit is contained in:
openoms
2019-07-24 15:47:14 +01:00
parent b617b7cf18
commit 2f93269b2f
2 changed files with 126 additions and 0 deletions

View File

@@ -10,6 +10,7 @@ echo "Paste the latest or desired commit ID to checkout from"
echo "See the list at: https://github.com/lightningnetwork/lnd/commits/master"
echo "Example:"
echo "4068e78af690f9b4a598de1f3f0b21b5560dd146"
echo "(if left empty will use the latest state of the master branch)"
echo "and press ENTER"
read commit
# commit="580509191007617afa6da4b6b0151b4b5313eb72"
@@ -29,6 +30,7 @@ echo "Deleting old source..."
sudo rm -r /usr/local/gocode/src/github.com/lightningnetwork/lnd
go get -d $repo
echo "Building LND..."
cd $GOPATH/src/${repo}
sudo git checkout ${commit}
make && make install