basicswap/docker/production/decred_daemon/entrypoint.sh

11 lines
205 B
Bash
Raw Normal View History

2024-05-30 10:46:59 +00:00
#!/bin/bash
set -e
if [[ "$1" == "dcrctl" || "$1" == "dcrd" || "$1" == "dcrwallet" ]]; then
mkdir -p "$DECRED_DATA"
chown -h decred:decred /home/decred/decred
exec gosu decred "$@"
else
exec "$@"
fi