From 0c79cf3e750f7c24bcb43e61e474fba08ce9b00d Mon Sep 17 00:00:00 2001 From: zontreck Date: Mon, 10 Feb 2025 02:10:43 -0700 Subject: [PATCH] Edit configuration stuff --- bitcoin/core/entrypoint.sh | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) diff --git a/bitcoin/core/entrypoint.sh b/bitcoin/core/entrypoint.sh index be2dc0b..9516d55 100644 --- a/bitcoin/core/entrypoint.sh +++ b/bitcoin/core/entrypoint.sh @@ -1,13 +1,22 @@ #!/bin/bash +echo "prune=$PRUNE" >> /btc.conf +echo "txindex=$TXINDEX" >> /btc.conf +echo "datadir=/data" >> /btc.conf + if [ $ENABLE_RPC == 1 ] then + echo "server=1" >> /btc.conf + echo "rpcbind=0.0.0.0:8332" >> /btc.conf if [ $ENABLE_AUTH == 1] then - /app/bitcoind -datadir=/data -server=1 -txindex=$TXINDEX -prune=$PRUNE -rpcallowip=0.0.0.0 -rpcuser="$USER" -rpcpassword="$PASS" -rpcbind=0.0.0.0:8332 - else - /app/bitcoind -datadir=/data -server=1 -txindex=$TXINDEX -prune=$PRUNE -rpcallowip=0.0.0.0 -rpcbind=0.0.0.0:8332 + echo "rpcuser=$USER" >> /btc.conf + echo "rpcpassword=$PASS" >> /btc.conf fi -else - /app/bitcoind -datadir=/data -txindex=$TXINDEX -prune=$PRUNE -fi \ No newline at end of file +fi + +echo ": : : /!\\ CONFIG WRITTEN /!\\ : : :" +cat /btc.conf +echo ": : : /!\\ END CONFIG /!\\ : : :" + +/app/bitcoind -conf=/btc.conf \ No newline at end of file