|
@ -126,8 +126,9 @@ do |
|
|
|
|
|
|
|
|
# building REST command |
|
|
# building REST command |
|
|
passwordC=$(sudo cat /root/lnd.autounlock.pwd) |
|
|
passwordC=$(sudo cat /root/lnd.autounlock.pwd) |
|
|
passinsert="'${passwordC}'" |
|
|
command="sudo python /home/admin/config.scripts/lnd.unlock.py '${passwordC}'" |
|
|
sudo python /home/admin/config.scripts/lnd.unlock.py ${passinsert} |
|
|
echo "command(${$command})" |
|
|
|
|
|
unlockResult=$($command) |
|
|
|
|
|
|
|
|
else |
|
|
else |
|
|
echo "lncli says not locked" |
|
|
echo "lncli says not locked" |
|
|