2
0
mirror of https://github.com/lnbook/lnbook synced 2024-11-08 19:10:35 +00:00
lnbook/code/docker/lnd/lnd-entrypoint.sh

19 lines
329 B
Bash
Raw Normal View History

#!/bin/bash
2020-06-14 17:45:43 +00:00
set -Eeuo pipefail
source /usr/local/bin/wait-for-bitcoind.sh
echo Starting lnd...
lnd --lnddir=/lnd --noseedbackup > /dev/null &
2020-06-14 17:45:43 +00:00
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
2020-06-14 17:45:43 +00:00
echo "$@"
exec "$@"