diff --git a/BitcoinKnots/23.0/docker-entrypoint.sh b/BitcoinKnots/23.0/docker-entrypoint.sh index a1fe476..36086b2 100755 --- a/BitcoinKnots/23.0/docker-entrypoint.sh +++ b/BitcoinKnots/23.0/docker-entrypoint.sh @@ -27,7 +27,7 @@ if [[ "$1" == "bitcoin-cli" || "$1" == "bitcoin-tx" || "$1" == "bitcoind" || "$1 CONFIG_PREFIX="${CONFIG_PREFIX}${NL}walletdir=${WALLETDIR}${NL}" if ! [[ -f "${WALLETFILE}" ]]; then echo "The wallet does not exists, creating it at ${WALLETDIR}..." - gosu bitcoin bitcoin-wallet "-datadir=${WALLETDIR}" "-wallet=" create + gosu bitcoin bitcoin-wallet "-datadir=${WALLETDIR}" "-legacy" "-wallet=" create fi fi @@ -58,8 +58,8 @@ if [[ "$1" == "bitcoin-cli" || "$1" == "bitcoin-tx" || "$1" == "bitcoind" || "$1 chown -R bitcoin "$BITCOIN_DATA" ln -sfn "$BITCOIN_DATA" /home/bitcoin/.bitcoin chown -h bitcoin:bitcoin /home/bitcoin/.bitcoin - + rm -f /home/bitcoin/.bitcoin/settings.json exec gosu bitcoin "$@" else exec "$@" -fi +fi \ No newline at end of file