2020-06-16 16:21:48 +00:00
|
|
|
#!/bin/bash
|
|
|
|
set -Eeuo pipefail
|
|
|
|
|
2020-06-18 18:35:47 +00:00
|
|
|
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
|
|
|
|
2020-06-18 18:35:47 +00:00
|
|
|
sleep 2
|
|
|
|
|
2020-06-16 16:21:48 +00:00
|
|
|
# Executing CMD
|
|
|
|
echo "$@"
|
|
|
|
exec "$@"
|