wine/launch

14 lines
394 B
Plaintext
Raw Permalink Normal View History

2018-12-22 16:30:12 +00:00
#!/bin/bash
# Make errors visible upon `docker logs -f steam` command
exec 2>&1
id user >/dev/null 2>&1
[ $? -eq 0 ] || useradd -s /bin/bash -d /home/user -u ${USER_ID:-1000} user
echo "LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/hostlibs/32:/hostlibs/64:
export LD_LIBRARY_PATH" | tee /home/user/.bash_profile
#su -l user -c "HOME=/home/user LD_LIBRARY_PATH=${LD_LIBRARY_PATH} bash $@"
su -l user