basicswap/docker/production/litecoin/entrypoint.sh

12 lines
258 B
Bash
Raw Normal View History

2020-12-27 19:39:10 +00:00
#!/bin/bash
set -e
if [[ "$1" == "litecoin-cli" || "$1" == "litecoin-tx" || "$1" == "litecoind" || "$1" == "test_litecoin" ]]; then
mkdir -p "$LITECOIN_DATA"
chown -h litecoin:litecoin /home/litecoin/.litecoin
exec gosu litecoin "$@"
else
exec "$@"
fi