bitcoin/launch

10 lines
256 B
Plaintext
Raw Permalink Normal View History

2018-12-27 12:57:52 +00:00
#!/bin/sh
# Make errors visible upon `docker logs -f` command
exec 2>&1
[ -d /home/user ] || ARGS="-m"
id user >/dev/null 2>&1 || useradd -s /bin/bash ${ARGS} -d /home/user -u ${USER_ID:-1000} user
su -l user -c "LANG=C.UTF-8 LC_ALL=C.UTF-8 bitcoin-qt"