Browse Source

#298 update to lndconnect

dev
rootzoll 6 years ago
parent
commit
7d8140599e
  1. 18
      home.admin/97addMobileWalletZap.sh

18
home.admin/97addMobileWalletZap.sh

@ -25,7 +25,7 @@ if [ ${goInstalled} -eq 0 ];then
goInstalled=$(go version 2>/dev/null | grep -c 'go') goInstalled=$(go version 2>/dev/null | grep -c 'go')
fi fi
if [ ${goInstalled} -eq 0 ];then if [ ${goInstalled} -eq 0 ];then
echo "FAIL: Was not able to install GO (needed to run ZapConnect)" echo "FAIL: Was not able to install GO (needed to run LndConnect)"
exit 1 exit 1
fi fi
@ -35,11 +35,11 @@ echo "*** Setup ***"
echo "" echo ""
echo "Installing zapconnect. Please wait..." echo "Installing zapconnect. Please wait..."
echo "" echo ""
echo "Getting github.com/LN-Zap/zapconnect (please wait) ..." echo "Getting github.com/LN-Zap/lndconnect (please wait) ..."
go get -d github.com/LN-Zap/zapconnect go get -d github.com/LN-Zap/lndconnect
cd $GOPATH/src/github.com/LN-Zap/zapconnect cd $GOPATH/src/github.com/LN-Zap/lndconnect
echo "" echo ""
echo "Building github.com/LN-Zap/zapconnect ..." echo "Building github.com/LN-Zap/lndconnect ..."
make make
cd cd
sleep 3 sleep 3
@ -69,11 +69,11 @@ clear
echo "*** STEP 2 : Click on Scan (make whole QR code fill camera) ***" echo "*** STEP 2 : Click on Scan (make whole QR code fill camera) ***"
if [ ${#dynDomain} -eq 0 ]; then if [ ${#dynDomain} -eq 0 ]; then
# If you drop the -i parameter, zapconnect will use the external IP. # If you drop the -i parameter, lndconnect will use the external IP.
zapconnect -i zapconnect -j -i
else else
# when dynamic domain is set # when dynamic domain is set
zapconnect --host=${dynDomain} zapconnect -j --host=${dynDomain}
fi fi
echo "(To shrink QR code: OSX->CMD- / LINUX-> CTRL-) Press ENTER when finished." echo "(To shrink QR code: OSX->CMD- / LINUX-> CTRL-) Press ENTER when finished."
@ -82,5 +82,5 @@ read key
clear clear
echo "If its not working - check issues on GitHub:" echo "If its not working - check issues on GitHub:"
echo "https://github.com/LN-Zap/zap-iOS/issues" echo "https://github.com/LN-Zap/zap-iOS/issues"
echo "https://github.com/LN-Zap/zapconnect/issues" echo "https://github.com/LN-Zap/lndconnect/issues"
echo "" echo ""

Loading…
Cancel
Save