mirror of
https://github.com/mynodebtc/mynode.git
synced 2024-12-26 06:28:07 +00:00
Add command to unlock lnd
This commit is contained in:
parent
b1ee5084de
commit
a6c5b336ad
11
rootfs/standard/usr/bin/mynode-lnd-unlock
Executable file
11
rootfs/standard/usr/bin/mynode-lnd-unlock
Executable file
|
@ -0,0 +1,11 @@
|
|||
#!/bin/bash
|
||||
|
||||
# mynode-lnd-unlock
|
||||
# This script needs to be run with sudo
|
||||
# It is intended to attempt a manual unlock of the lnd wallet
|
||||
set -e
|
||||
|
||||
LND_PASS=$(cat /mnt/hdd/mynode/settings/.lndpw)
|
||||
LND_TLS_CERT="/home/bitcoin/.lnd/tls.cert"
|
||||
LND_MACAROON="/home/bitcoin/.lnd/data/chain/mainnet/admin.macaroon"
|
||||
echo $LND_PASS | lncli --tlscertpath $LND_TLS_CERT --macaroonpath $LND_MACAROON unlock --stdin
|
Loading…
Reference in New Issue
Block a user