diff --git a/cyphernodeconf_docker/templates/bitcoin/createWallets.sh b/cyphernodeconf_docker/templates/bitcoin/createWallets.sh index c7c3d53..72993f1 100755 --- a/cyphernodeconf_docker/templates/bitcoin/createWallets.sh +++ b/cyphernodeconf_docker/templates/bitcoin/createWallets.sh @@ -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" diff --git a/cyphernodeconf_docker/templates/lightning/c-lightning/entrypoint.sh b/cyphernodeconf_docker/templates/lightning/c-lightning/entrypoint.sh index 8b9ec7e..37579e3 100755 --- a/cyphernodeconf_docker/templates/lightning/c-lightning/entrypoint.sh +++ b/cyphernodeconf_docker/templates/lightning/c-lightning/entrypoint.sh @@ -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