mirror of
https://github.com/basicswap/basicswap.git
synced 2024-12-23 03:49:25 +00:00
11 lines
272 B
Bash
Executable file
11 lines
272 B
Bash
Executable file
#!/bin/bash
|
|
set -e
|
|
|
|
if [[ "$1" == "bitcoin-cli" || "$1" == "bitcoin-tx" || "$1" == "bitcoind" || "$1" == "test_bitcoin" ]]; then
|
|
mkdir -p "$BITCOINCASH_DATA"
|
|
|
|
chown -h bitcoincash:bitcoincash /home/bitcoincash/.bitcoincash
|
|
exec gosu bitcoincash "$@"
|
|
else
|
|
exec "$@"
|
|
fi
|