raspiblitz/home.admin/config.scripts/bonus.fullynoded.sh
/rootzoll eaa6993e5a
#2167 smaller fixes for v1.7RC3 (#2206)
* adding spacing line

* prepare v1.7RC3

* fix lnbits macaroon write after reset

* add IP2Tor renew info

* fixing info

* remove debug info

* #2157 LNbits needs https for local

* more info

* reboot on macaroon reset

* fix blocking LIT install

* set correct fonts

* set font for lcd

* #2198 add connect Info

* fix syntax

* fix text layout

* layout text

* fix text layout

* more install info

* fix text layout

* text layout

* text layout

* fix restart lnd

* force lnd RPC/REST standard & open on boot

* #2198 fix fully noded connection

* #2198 deactivate Zap-Android from menu
2021-04-20 00:26:49 +02:00

40 lines
No EOL
1.4 KiB
Bash
Executable file

#!/bin/bash
clear
# load raspiblitz config data
source /home/admin/raspiblitz.info
source /mnt/hdd/raspiblitz.conf
# make sure txindex and wallet of bitcoin is on
/home/admin/config.scripts/network.wallet.sh on
/home/admin/config.scripts/network.txindex.sh on
# extract RPC credentials from bitcoin.conf - store only in var
RPC_USER=$(sudo cat /mnt/hdd/bitcoin/bitcoin.conf | grep rpcuser | cut -c 9-)
PASSWORD_B=$(sudo cat /mnt/hdd/bitcoin/bitcoin.conf | grep rpcpassword | cut -c 13-)
if [ "${chain}net" == "mainnet" ]; then
BITCOINRPCPORT=8332
elif [ "${chain}net" == "testnet" ]; then
BITCOINRPCPORT=18332
elif [ "${chain}net" == "signet" ]; then
BITCOINRPCPORT=38332
fi
# check and set up the HS
/home/admin/config.scripts/internet.hiddenservice.sh bitcoin ${BITCOINRPCPORT} ${BITCOINRPCPORT}
hiddenService=$(sudo cat /mnt/hdd/tor/bitcoin${BITCOINRPCPORT}/hostname)
# btcstandup://<rpcuser>:<rpcpassword>@<hidden service hostname>:<hidden service port>/?label=<optional node label>
quickConnect="btcstandup://$RPC_USER:$PASSWORD_B@$hiddenService:${BITCOINRPCPORT}/?label=$hostname"
echo
echo "scan the QR Code with Fully Noded to connect to your node:"
/home/admin/config.scripts/blitz.display.sh qr "${quickConnect}"
qrencode -t ANSI256 $quickConnect
echo "Press ENTER to return to the menu"
read key
# clean up
/home/admin/config.scripts/blitz.display.sh hide
clear