mirror of
https://github.com/mynodebtc/mynode.git
synced 2024-12-28 15:31:37 +00:00
19 lines
542 B
Bash
Executable File
19 lines
542 B
Bash
Executable File
#!/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
|
|
|
|
source /usr/share/mynode/mynode_config.sh
|
|
|
|
NETWORK=mainnet
|
|
if [ -f $IS_TESTNET_ENABLED_FILE ]; then
|
|
NETWORK=testnet
|
|
fi
|
|
|
|
LND_PASS=$(cat /mnt/hdd/mynode/settings/.lndpw)
|
|
LND_TLS_CERT="/home/bitcoin/.lnd/tls.cert"
|
|
LND_MACAROON="/home/bitcoin/.lnd/data/chain/$NETWORK/admin.macaroon"
|
|
echo $LND_PASS | lncli --network=$NETWORK --tlscertpath $LND_TLS_CERT --macaroonpath $LND_MACAROON unlock --stdin
|