fix setting password c

This commit is contained in:
rootzoll
2019-01-14 16:30:46 +01:00
parent 16d0b2db74
commit 96b062520b

View File

@@ -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