From 16d0b2db7464b5a6df5dd05c7594c89daf2473b4 Mon Sep 17 00:00:00 2001 From: rootzoll Date: Mon, 14 Jan 2019 16:25:43 +0100 Subject: [PATCH] fix change wallet password --- home.admin/config.scripts/blitz.setpassword.sh | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/home.admin/config.scripts/blitz.setpassword.sh b/home.admin/config.scripts/blitz.setpassword.sh index fcf143d..6c52079 100644 --- a/home.admin/config.scripts/blitz.setpassword.sh +++ b/home.admin/config.scripts/blitz.setpassword.sh @@ -15,6 +15,12 @@ fi # load raspiblitz config (if available) source /mnt/hdd/raspiblitz.conf 2>/dev/null +if [ ${#network} -eq 0 ]; then + network="bitcoin" +fi +if [ ${#chain} -eq 0 ]; then + chain="main" +fi # 1. parameter [?a|b|c|d] abcd=$1 @@ -72,7 +78,7 @@ elif [ "${abcd}" = "c" ]; then clear echo "" echo "****************************************************************************" - echo "Change LND Wallet Password --> lncli changepassword" + echo "Change LND Wallet Password --> lncli --chain=${network} --network=${chain}net changepassword" echo "****************************************************************************" echo "This is your Password C on the RaspiBlitz to unlock your LND wallet." echo "If you had Auto-Unlock active - you need to re-activate after this." @@ -80,7 +86,7 @@ elif [ "${abcd}" = "c" ]; then echo "****************************************************************************" # let LND-CLI handle the password change - result=$(lncli changepassword) + result=$(lncli --chain=${network} --network=${chain}net changepassword) echo "result(${result})" # deactivate AUTO-UNLOCK if activated