2016-08-06 13:04:44 +00:00
|
|
|
#!/bin/bash
|
2016-08-05 21:02:44 +00:00
|
|
|
|
2016-08-06 13:04:44 +00:00
|
|
|
# Make errors visible upon `docker logs -f steam` command
|
2016-08-05 21:02:44 +00:00
|
|
|
exec 2>&1
|
|
|
|
|
2016-10-25 11:32:32 +00:00
|
|
|
service dnsmasq start
|
|
|
|
|
2018-12-21 15:52:33 +00:00
|
|
|
id user >/dev/null 2>&1
|
2018-12-23 13:05:19 +00:00
|
|
|
[ $? -eq 0 ] || useradd -s /bin/bash -d /home/user -u ${USER_ID:-1000} -G audio,video user
|
2016-08-05 21:02:44 +00:00
|
|
|
|
2018-12-28 16:30:26 +00:00
|
|
|
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}
|
2016-08-07 11:34:03 +00:00
|
|
|
|
2018-12-28 16:30:26 +00:00
|
|
|
export LD_LIBRARY_PATH
|
|
|
|
export LC_ALL
|
|
|
|
export LANG
|
|
|
|
export STEAM_RUNTIME
|
2016-08-06 16:20:55 +00:00
|
|
|
|
2018-12-28 16:30:26 +00:00
|
|
|
gosu user steam $@ |& grep -v 'wrong ELF class'
|