Just use the anonymous steam user.

This commit is contained in:
Daniel Ceregatti 2022-03-25 19:06:02 -07:00
parent 8eed898bd4
commit c07ad683ca
3 changed files with 1 additions and 10 deletions

View file

@ -5,12 +5,8 @@ A Linux DayZ server in a Docker container.
Edit docker-compose.yml and set the variables:
```
- STEAMLOGIN=yourSteamLogin
- SERVERNAME="DayZ on Linux for Linux"
```
The steam login is necessary as the server files require ownership
of the game.
Build the container, run it, tail the logs:
```
docker-compose build

View file

@ -19,6 +19,5 @@ services:
- serverfiles:/home/user/serverfiles
- serverprofile:/home/user/serverprofile
environment:
- STEAMLOGIN=anonymous
# Escape any forwardslashes: SERVERNAME="My thing \/ My other thing"
- SERVERNAME=DayZ on Linux for Linux

View file

@ -4,11 +4,7 @@
ulimit -c 0
# This script will take environment variables and put them into the files the script expects.
if ! grep STEAMLOGIN .steamlogin
then
echo "Setting the STEAMLOGIN..."
echo "steamlogin=${STEAMLOGIN}" > .steamlogin
fi
echo "steamlogin=anonymous" > .steamlogin
# Do something with SERVERNAME="DayZ on Linux for Linux"
if ! grep SERVERNAME serverDZ.cfg