mirror of
https://github.com/aljazceru/cyphernode.git
synced 2025-12-26 00:55:08 +01:00
fixe for wait loop
This commit is contained in:
@@ -6,11 +6,13 @@ BITCOIN_CLI='bitcoin-cli'
|
||||
BITCOIN_CLI="$BITCOIN_CLI -regtest"
|
||||
<% } %>
|
||||
|
||||
USER="`id -u -n`:`id -g -n`"
|
||||
|
||||
while [ true ];
|
||||
do
|
||||
sleep 5;
|
||||
sleep 10;
|
||||
echo "CYPHERNODE: bitcoind is starting"
|
||||
${BITCOIN_CLI} echo && touch /container_monitor/bitcoin_ready && break || rm -f /container_monitor/bitcoin_ready
|
||||
chown $USER /container_monitor && ${BITCOIN_CLI} echo && touch /container_monitor/bitcoin_ready && chown $USER /container_monitor/bitcoin_ready && break || rm -f /container_monitor/bitcoin_ready
|
||||
done
|
||||
|
||||
echo "CYPHERNODE: bitcoind is ready"
|
||||
|
||||
@@ -13,7 +13,7 @@ while [ -z "${TORIP}" ]; do echo "tor not ready" ; TORIP=$(getent hosts tor | aw
|
||||
#TORIP=$(getent hosts tor | awk '{ print $1 }')
|
||||
echo "tor ready at IP ${TORIP}"
|
||||
|
||||
lightningd --proxy=$TORIP:9050
|
||||
exec lightningd --proxy=$TORIP:9050
|
||||
<% } else { %>
|
||||
|
||||
exec lightningd
|
||||
|
||||
Reference in New Issue
Block a user