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

23 lines
368 B
Bash
Raw Normal View History

2020-06-16 16:21:48 +00:00
#!/bin/bash
set -Eeuo pipefail
source /usr/local/bin/wait-for-bitcoind.sh
2020-06-16 16:21:48 +00:00
echo Starting eclair...
2020-06-17 14:40:07 +00:00
cd /usr/src/eclair-node-${ECLAIR_VER}-${ECLAIR_COMMIT}/
/bin/bash bin/eclair-node.sh -Declair.datadir="/eclair" &
cd /eclair
until eclair-cli -p eclair getinfo > /dev/null 2>&1
do
sleep 1
done
echo Eclair node started
2020-06-16 16:21:48 +00:00
sleep 2
2020-06-16 16:21:48 +00:00
# Executing CMD
echo "$@"
exec "$@"