basicswap/docker/production/bitcoincash/entrypoint.sh

12 lines
272 B
Bash
Raw Normal View History

#!/bin/bash
set -e
if [[ "$1" == "bitcoin-cli" || "$1" == "bitcoin-tx" || "$1" == "bitcoind" || "$1" == "test_bitcoin" ]]; then
2024-11-12 20:43:32 +00:00
mkdir -p "$BITCOINCASH_DATA"
2024-11-12 20:43:32 +00:00
chown -h bitcoincash:bitcoincash /home/bitcoincash/.bitcoincash
exec gosu bitcoincash "$@"
else
exec "$@"
fi