basicswap/docker/production/particl/entrypoint.sh

12 lines
248 B
Bash
Raw Normal View History

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