mirror of
https://github.com/rootzoll/raspiblitz.git
synced 2025-02-24 14:51:03 +01:00
add dynamicDNS
This commit is contained in:
parent
b223f7f863
commit
bec10e7567
2 changed files with 20 additions and 16 deletions
|
@ -1,11 +1,7 @@
|
|||
#!/bin/bash
|
||||
|
||||
# load raspiblitz config data (with backup from old config)
|
||||
source /mnt/hdd/raspiblitz.conf 2>/dev/null
|
||||
if [ ${#network} -eq 0 ]; then network=`cat .network`; fi
|
||||
if [ ${#chain} -eq 0 ]; then
|
||||
chain=$(${network}-cli getblockchaininfo | jq -r '.chain')
|
||||
fi
|
||||
source /mnt/hdd/raspiblitz.conf
|
||||
|
||||
# make sure qrcode-encoder in installed
|
||||
clear
|
||||
|
@ -15,6 +11,11 @@ sudo apt-get install qrencode -y
|
|||
# get local IP
|
||||
myip=$(ifconfig | sed -En 's/127.0.0.1//;s/.*inet (addr:)?(([0-9]*\.){3}[0-9]*).*/\2/p')
|
||||
|
||||
# replace dyndomain if available
|
||||
if [ ${#dynDomain} -gt 0 ]; then
|
||||
myip="${dynDomain}"
|
||||
fi
|
||||
|
||||
clear
|
||||
echo "******************************"
|
||||
echo "Connect Shango Mobile Wallet"
|
||||
|
@ -26,11 +27,13 @@ echo "iOS: Read https://testflight.apple.com/join/WwCjFnS8 (open on device)"
|
|||
echo "Android: https://play.google.com/apps/testing/com.shango (open on device)"
|
||||
echo ""
|
||||
echo "*** STEP 1 ***"
|
||||
echo "Once you have the app is running make sure you are on the same local network (WLAN same as LAN)."
|
||||
echo "Then go to --> 'Connect to your LND Server'"
|
||||
if [ ${#dynDomain} -eg 0 ]; then
|
||||
echo "Once you have the app is running make sure you are on the same local network (WLAN same as LAN)."
|
||||
fi
|
||||
echo "In App go to --> 'Connect to your LND Server'"
|
||||
echo "There you see three 3 form fields to fill out. Skip those and go right to the buttons below."
|
||||
echo ""
|
||||
echo "Click on the 'Scan OR' button"
|
||||
echo "Click on the 'Scan QR' button"
|
||||
echo "Make the this terminal as big as possible - fullscreen would be best."
|
||||
echo "Then PRESS ENTER here in the terminal to generare the QR code and scan it with the app."
|
||||
read key
|
||||
|
|
|
@ -1,11 +1,7 @@
|
|||
#!/bin/bash
|
||||
|
||||
# load raspiblitz config data (with backup from old config)
|
||||
source /mnt/hdd/raspiblitz.conf 2>/dev/null
|
||||
if [ ${#network} -eq 0 ]; then network=`cat .network`; fi
|
||||
if [ ${#chain} -eq 0 ]; then
|
||||
chain=$(${network}-cli getblockchaininfo | jq -r '.chain')
|
||||
fi
|
||||
# load raspiblitz config data
|
||||
source /mnt/hdd/raspiblitz.conf
|
||||
|
||||
# make sure qrcode-encoder in installed
|
||||
clear
|
||||
|
@ -42,8 +38,13 @@ read key
|
|||
clear
|
||||
echo "*** STEP 2 : Click on Scan (make whole QR code fill camera) ***"
|
||||
|
||||
# If you drop the -i parameter, zapconnect will use the external IP.
|
||||
/home/admin/go/src/github.com/LN-Zap/zapconnect/zapconnect -i
|
||||
if [ ${#dynDomain} -gt 0 ]; then
|
||||
# If you drop the -i parameter, zapconnect will use the external IP.
|
||||
/home/admin/go/src/github.com/LN-Zap/zapconnect/zapconnect -i
|
||||
else
|
||||
# when dynamic domain is set
|
||||
/home/admin/go/src/github.com/LN-Zap/zapconnect/zapconnect --host=${dynDomain}
|
||||
fi
|
||||
|
||||
echo "(To shrink QR code: OSX->CMD- / LINUX-> CTRL-) Press ENTER when finished."
|
||||
read key
|
||||
|
|
Loading…
Add table
Reference in a new issue