ipfs/launch

11 lines
252 B
Plaintext
Raw Normal View History

2018-12-29 12:52:07 +00:00
#!/bin/bash
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