11 lines
252 B
Plaintext
11 lines
252 B
Plaintext
|
#!/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
|