bitcoin/launch
2018-12-27 13:57:52 +01:00

10 lines
256 B
Bash

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