fix changed macaroon path

This commit is contained in:
rootzoll
2018-08-24 20:35:55 +02:00
parent 5d706308b5
commit 36d4e3e766
3 changed files with 35 additions and 18 deletions

View File

@@ -1,5 +1,15 @@
#!/bin/bash
# load network
network=`cat .network`
# get chain
chain="test"
isMainChain=$(sudo cat /mnt/hdd/${network}/${network}.conf 2>/dev/null | grep "#testnet=1" -c)
if [ ${isMainChain} -gt 0 ];then
chain="main"
fi
# make sure qrcode-encoder in installed
clear
echo "*** Setup ***"
@@ -36,7 +46,7 @@ read key
clear
echo "*** STEP 2 : SCAN MACAROON (make whole QR code fill camera) ***"
qrencode $(xxd -p -c3000 /home/admin/.lnd/admin.macaroon) -t ANSIUTF8
qrencode $(xxd -p -c3000 /home/admin/.lnd/data/${network}/${chain}net/admin.macaroon) -t ANSIUTF8
echo "Press ENTER to make RaspiBlitz displaying the TLS-CERT QR code ..."
echo "(To shrink QR code: OSX->CMD- / LINUX-> CTRL-) Press ENTER for next step."
read key