mirror of
https://github.com/aljazceru/cyphernode.git
synced 2025-12-26 00:55:08 +01:00
Changed wait loop for bitcoind after jedi review
This commit is contained in:
@@ -6,14 +6,7 @@ BITCOIN_CLI='bitcoin-cli'
|
||||
BITCOIN_CLI="$BITCOIN_CLI -regtest"
|
||||
<% } %>
|
||||
|
||||
USER="`id -u`:`id -g`"
|
||||
|
||||
while [ true ];
|
||||
do
|
||||
sleep 10;
|
||||
echo "CYPHERNODE: bitcoind is starting"
|
||||
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
|
||||
while [ ! -f "/container_monitor/bitcoin_ready" ]; do echo "CYPHERNODE: bitcoind not ready" ; sleep 10 ; done
|
||||
|
||||
echo "CYPHERNODE: bitcoind is ready"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user