docker: Update templates for BCH.

This commit is contained in:
tecnovert
2024-11-12 22:43:32 +02:00
parent 3a5e40187a
commit 4693d96c52
10 changed files with 47 additions and 25 deletions

View File

@@ -2,10 +2,10 @@
set -e
if [[ "$1" == "bitcoin-cli" || "$1" == "bitcoin-tx" || "$1" == "bitcoind" || "$1" == "test_bitcoin" ]]; then
mkdir -p "$BITCOIN_DATA"
mkdir -p "$BITCOINCASH_DATA"
chown -h bitcoin:bitcoin /home/bitcoin/.bitcoin
exec gosu bitcoin "$@"
chown -h bitcoincash:bitcoincash /home/bitcoincash/.bitcoincash
exec gosu bitcoincash "$@"
else
exec "$@"
fi