mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-11-19 02:22:24 +01:00
fix change wallet password
This commit is contained in:
@@ -15,6 +15,12 @@ fi
|
|||||||
|
|
||||||
# load raspiblitz config (if available)
|
# load raspiblitz config (if available)
|
||||||
source /mnt/hdd/raspiblitz.conf 2>/dev/null
|
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]
|
# 1. parameter [?a|b|c|d]
|
||||||
abcd=$1
|
abcd=$1
|
||||||
@@ -72,7 +78,7 @@ elif [ "${abcd}" = "c" ]; then
|
|||||||
clear
|
clear
|
||||||
echo ""
|
echo ""
|
||||||
echo "****************************************************************************"
|
echo "****************************************************************************"
|
||||||
echo "Change LND Wallet Password --> lncli changepassword"
|
echo "Change LND Wallet Password --> lncli --chain=${network} --network=${chain}net changepassword"
|
||||||
echo "****************************************************************************"
|
echo "****************************************************************************"
|
||||||
echo "This is your Password C on the RaspiBlitz to unlock your LND wallet."
|
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."
|
echo "If you had Auto-Unlock active - you need to re-activate after this."
|
||||||
@@ -80,7 +86,7 @@ elif [ "${abcd}" = "c" ]; then
|
|||||||
echo "****************************************************************************"
|
echo "****************************************************************************"
|
||||||
|
|
||||||
# let LND-CLI handle the password change
|
# let LND-CLI handle the password change
|
||||||
result=$(lncli changepassword)
|
result=$(lncli --chain=${network} --network=${chain}net changepassword)
|
||||||
echo "result(${result})"
|
echo "result(${result})"
|
||||||
|
|
||||||
# deactivate AUTO-UNLOCK if activated
|
# deactivate AUTO-UNLOCK if activated
|
||||||
|
|||||||
Reference in New Issue
Block a user