mirror of
https://github.com/Retropex/dockerfile-deps.git
synced 2025-05-13 00:40:41 +02:00
create legacy wallet in knots like in core
This commit is contained in:
parent
0fba4fb961
commit
c94a3ecd0b
@ -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
|
Loading…
Reference in New Issue
Block a user