From 3aea4e7cadba0be7e9f9477fb9d14e57b39a1c2a Mon Sep 17 00:00:00 2001 From: Philippe Lamy Date: Thu, 20 May 2021 12:24:47 -0400 Subject: [PATCH] Changed wait loop for bitcoind after jedi review --- cyphernodeconf_docker/templates/bitcoin/createWallets.sh | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/cyphernodeconf_docker/templates/bitcoin/createWallets.sh b/cyphernodeconf_docker/templates/bitcoin/createWallets.sh index 0d97ee6..699d293 100755 --- a/cyphernodeconf_docker/templates/bitcoin/createWallets.sh +++ b/cyphernodeconf_docker/templates/bitcoin/createWallets.sh @@ -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"