You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
475 B

#!/bin/bash
# Make errors visible upon `docker logs -f steam` command
exec 2>&1
service dnsmasq start
id user >/dev/null 2>&1
[ $? -eq 0 ] || useradd -s /bin/bash -d /home/user -u ${USER_ID:-1000} -G audio,video user
LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:/hostlibs/32:/hostlibs/64:"
LC_ALL=en_GB.UTF-8
LANG=en_US.UTF-8
STEAM_RUNTIME=${STEAM_RUNTIME:-1}
export LD_LIBRARY_PATH
export LC_ALL
export LANG
export STEAM_RUNTIME
gosu user steam $@ |& grep -v 'wrong ELF class'