mirror of https://github.com/lnbook/lnbook
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
285 B
Bash
17 lines
285 B
Bash
4 years ago
|
#!/bin/bash
|
||
4 years ago
|
set -Eeuo pipefail
|
||
4 years ago
|
|
||
|
echo Starting lnd...
|
||
|
lnd --lnddir=/lnd --noseedbackup > /dev/null &
|
||
4 years ago
|
|
||
4 years ago
|
until lncli --lnddir=/lnd -n regtest getinfo > /dev/null 2>&1
|
||
|
do
|
||
|
sleep 1
|
||
|
done
|
||
|
echo "Startup complete"
|
||
|
echo "Funding lnd wallet"
|
||
|
source /usr/local/bin/fund-lnd.sh
|
||
|
|
||
4 years ago
|
echo "$@"
|
||
4 years ago
|
exec "$@"
|