You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

11 lines
252 B

set -x
# Make errors visible upon `docker logs -f steam` command
exec 2>&1
id user >/dev/null 2>&1 || useradd -s /usr/sbin/nologin -d /home/user -u ${UID:-1000} user
[ -d /home/user/.ipfs ] || gosu user ipfs init
gosu user ipfs daemon