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: Edit docker-compose.yml and set the variables:
``` ```
- STEAMLOGIN=yourSteamLogin
- SERVERNAME="DayZ on Linux for Linux" - 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: Build the container, run it, tail the logs:
``` ```
docker-compose build docker-compose build

View file

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

View file

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