From 96b062520b9c7b2ea01fdabdfc3a83306b5f7cf2 Mon Sep 17 00:00:00 2001 From: rootzoll Date: Mon, 14 Jan 2019 16:30:46 +0100 Subject: [PATCH] fix setting password c --- home.admin/config.scripts/blitz.setpassword.sh | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/home.admin/config.scripts/blitz.setpassword.sh b/home.admin/config.scripts/blitz.setpassword.sh index 6c52079..7011e9a 100644 --- a/home.admin/config.scripts/blitz.setpassword.sh +++ b/home.admin/config.scripts/blitz.setpassword.sh @@ -75,6 +75,12 @@ elif [ "${abcd}" = "b" ]; then # PASSWORD C elif [ "${abcd}" = "c" ]; then + if [ ${#newPassword} -gt 0]; then + echo "New password C cannot be set thru paramter .. will start interactive password setting." + echo "PRESS ENTER to continue" + read key + fi + clear echo "" echo "****************************************************************************" @@ -86,8 +92,7 @@ elif [ "${abcd}" = "c" ]; then echo "****************************************************************************" # let LND-CLI handle the password change - result=$(lncli --chain=${network} --network=${chain}net changepassword) - echo "result(${result})" + lncli --chain=${network} --network=${chain}net changepassword # deactivate AUTO-UNLOCK if activated sudo /home/admin/config.scripts/lnd.autounlock.sh off