fix set password c

This commit is contained in:
rootzoll
2019-01-14 16:32:21 +01:00
parent 96b062520b
commit e11c786856

View File

@@ -75,7 +75,7 @@ elif [ "${abcd}" = "b" ]; then
# PASSWORD C # PASSWORD C
elif [ "${abcd}" = "c" ]; then elif [ "${abcd}" = "c" ]; then
if [ ${#newPassword} -gt 0]; then if [ ${#newPassword} -gt 0 ]; then
echo "New password C cannot be set thru paramter .. will start interactive password setting." echo "New password C cannot be set thru paramter .. will start interactive password setting."
echo "PRESS ENTER to continue" echo "PRESS ENTER to continue"
read key read key
@@ -92,7 +92,7 @@ elif [ "${abcd}" = "c" ]; then
echo "****************************************************************************" echo "****************************************************************************"
# let LND-CLI handle the password change # let LND-CLI handle the password change
lncli --chain=${network} --network=${chain}net changepassword sudo -u bitcoin lncli --chain=${network} --network=${chain}net changepassword
# deactivate AUTO-UNLOCK if activated # deactivate AUTO-UNLOCK if activated
sudo /home/admin/config.scripts/lnd.autounlock.sh off sudo /home/admin/config.scripts/lnd.autounlock.sh off