mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-11-18 18:07:45 +01:00
removed double command
This commit is contained in:
@@ -51,9 +51,9 @@ if [ "${chain}" != "${choice}" ]; then
|
|||||||
else
|
else
|
||||||
echo "Testnet Setting changed .."
|
echo "Testnet Setting changed .."
|
||||||
sudo /home/admin/config.scripts/network.chain.sh ${choice}net
|
sudo /home/admin/config.scripts/network.chain.sh ${choice}net
|
||||||
walletExists=$(sudo ls /mnt/hdd/lnd/data/chain/${network}/${choice}net/wallet.db | grep -c 'wallet.db')
|
walletExists=$(sudo ls /mnt/hdd/lnd/data/chain/${network}/${choice}net/wallet.db 2>/dev/null | grep -c 'wallet.db')
|
||||||
if [ ${walletExists} -eq 0 ]; then
|
if [ ${walletExists} -eq 0 ]; then
|
||||||
echo "Creating new Wallet"
|
echo "Need to creating a new wallet ..."
|
||||||
sudo systemctl start lnd
|
sudo systemctl start lnd
|
||||||
tryAgain=1
|
tryAgain=1
|
||||||
while [ ${tryAgain} -eq 1 ]
|
while [ ${tryAgain} -eq 1 ]
|
||||||
@@ -65,7 +65,6 @@ if [ "${chain}" != "${choice}" ]; then
|
|||||||
echo "B) Answere 'n' because you dont have a 'cipher seed mnemonic' (24 words) yet"
|
echo "B) Answere 'n' because you dont have a 'cipher seed mnemonic' (24 words) yet"
|
||||||
echo "C) For 'passphrase' to encrypt your 'cipher seed' use PASSWORD D (optional)"
|
echo "C) For 'passphrase' to encrypt your 'cipher seed' use PASSWORD D (optional)"
|
||||||
echo "****************************************************************************"
|
echo "****************************************************************************"
|
||||||
lncli create
|
|
||||||
sudo -u bitcoin /usr/local/bin/lncli --chain=${network} create 2>error.out
|
sudo -u bitcoin /usr/local/bin/lncli --chain=${network} create 2>error.out
|
||||||
error=`sudo cat error.out`
|
error=`sudo cat error.out`
|
||||||
if [ ${#error} -eq 0 ]; then
|
if [ ${#error} -eq 0 ]; then
|
||||||
|
|||||||
@@ -4,9 +4,11 @@
|
|||||||
source /mnt/hdd/raspiblitz.conf 2>/dev/null
|
source /mnt/hdd/raspiblitz.conf 2>/dev/null
|
||||||
if [ ${#network} -eq 0 ]; then network=`cat .network`; fi
|
if [ ${#network} -eq 0 ]; then network=`cat .network`; fi
|
||||||
if [ ${#chain} -eq 0 ]; then
|
if [ ${#chain} -eq 0 ]; then
|
||||||
|
echo "gathering chain info ... please wait"
|
||||||
chain=$(${network}-cli getblockchaininfo | jq -r '.chain')
|
chain=$(${network}-cli getblockchaininfo | jq -r '.chain')
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
clear
|
||||||
echo ""
|
echo ""
|
||||||
echo "****************************************************************************"
|
echo "****************************************************************************"
|
||||||
echo "Unlock LND Wallet --> lncli --chain=${network} unlock"
|
echo "Unlock LND Wallet --> lncli --chain=${network} unlock"
|
||||||
|
|||||||
Reference in New Issue
Block a user