mirror of
https://ceregatti.org/git/daniel/dayzdockerserver.git
synced 2025-05-06 14:21:18 +00:00
Just use the anonymous steam user.
This commit is contained in:
parent
8eed898bd4
commit
c07ad683ca
3 changed files with 1 additions and 10 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue