ipfs/launch
2018-12-29 13:52:07 +01:00

11 lines
252 B
Bash
Executable File

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