2019-12-04 12:05:27 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
# commit to checkout
|
|
|
|
# https://github.com/LN-Zap/lndconnect/commits/master
|
|
|
|
commit=82d7103bb8c8dd3c8ae8de89e3bc061eef82bb8f
|
|
|
|
|
|
|
|
isInstalled=$(lndconnect -h | grep "nocert" -c)
|
|
|
|
if [ $isInstalled -eq 0 ]; then
|
|
|
|
echo "Installing lndconnect.."
|
2019-12-17 13:44:10 +00:00
|
|
|
# get Go vars
|
|
|
|
source /etc/profile
|
2019-12-04 12:05:27 +00:00
|
|
|
# Install latest lndconnect from source:
|
|
|
|
go get -d github.com/LN-Zap/lndconnect
|
2019-12-17 13:44:10 +00:00
|
|
|
cd $GOPATH/src/github.com/LN-Zap/lndconnect
|
2019-12-04 12:05:27 +00:00
|
|
|
git checkout $commit
|
|
|
|
make
|
|
|
|
else
|
|
|
|
echo "lndconnect is already installed"
|
2019-12-17 13:44:10 +00:00
|
|
|
fi
|