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

17 lines
318 B
Bash
Raw Normal View History

2020-06-15 14:40:23 +00:00
#!/bin/bash
set -Eeuo pipefail
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 "$@"