2
0
mirror of https://github.com/lnbook/lnbook synced 2024-11-18 21:28:03 +00:00
lnbook/code/docker/c-lightning/c-lightning-entrypoint.sh

20 lines
391 B
Bash
Raw Normal View History

2020-06-15 14:40:23 +00:00
#!/bin/bash
set -Eeuo pipefail
source /usr/local/bin/wait-for-bitcoind.sh
echo Starting c-lightning...
2020-06-15 14:40:23 +00:00
lightningd --lightning-dir=/lightningd --daemon
2020-06-16 13:45:12 +00:00
until lightning-cli --lightning-dir=/lightningd --network regtest getinfo > /dev/null 2>&1
do
sleep 1
done
echo "Startup complete"
sleep 2
echo "Funding c-lightning wallet"
source /usr/local/bin/fund-c-lightning.sh
2020-06-15 14:40:23 +00:00
echo "$@"
exec "$@"