basicswap/docker/production/decred_daemon/entrypoint.sh
2024-06-06 22:03:39 +02:00

11 lines
No EOL
205 B
Bash
Executable file

#!/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