2
0
mirror of https://github.com/lnbook/lnbook synced 2024-11-01 03:20:53 +00:00
lnbook/code/docker/lnd-run/lnd-entrypoint.sh
Andreas M. Antonopoulos 28f91cb4b4 Clean up lnd-run docker
Add entrypoint script, bash alias, log tailing and cleaner startup script
2020-06-11 10:43:32 -04:00

15 lines
263 B
Bash

#!/bin/bash
echo Starting lnd...
lnd --lnddir=/lnd --noseedbackup > /dev/null &
sleep 5
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
exec "$@"