Files
cyphernode/cyphernodeconf_docker/templates/bitcoin/entrypoint.sh
2021-05-10 11:33:53 -04:00

18 lines
455 B
Bash
Executable File

#!/bin/sh
rm -f /container_monitor/bitcoin_ready
<% if ( features.indexOf('tor') !== -1 && torifyables && torifyables.indexOf('tor_bitcoin') !== -1 ) { %>
while [ ! -f "/container_monitor/tor_ready" ];
do
echo "CYPHERNODE: Waiting for Tor to be ready before starting bitcoind"
sleep 10
done
echo "CYPHERNODE: Tor is ready - Starting bitcoind"
<% } %>
# Create default wallets if they are not loaded
/.bitcoin/createWallets.sh &
exec bitcoind