mirror of
https://github.com/rootzoll/raspiblitz.git
synced 2025-02-25 07:07:46 +01:00
19 lines
510 B
Bash
19 lines
510 B
Bash
#!/bin/bash
|
|
|
|
# commit to checkout
|
|
# https://github.com/LN-Zap/lndconnect/commits/master
|
|
commit=82d7103bb8c8dd3c8ae8de89e3bc061eef82bb8f
|
|
|
|
isInstalled=$(lndconnect -h 2>/dev/null | grep "nocert" -c)
|
|
if [ $isInstalled -eq 0 ]; then
|
|
echo "Installing lndconnect.."
|
|
# get Go vars
|
|
source /etc/profile
|
|
# Install latest lndconnect from source:
|
|
go get -d github.com/LN-Zap/lndconnect
|
|
cd $GOPATH/src/github.com/LN-Zap/lndconnect
|
|
git checkout $commit
|
|
make
|
|
else
|
|
echo "lndconnect is already installed"
|
|
fi
|