mirror of
https://ceregatti.org/git/daniel/dayzdockerserver.git
synced 2025-05-06 22:31: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:
|
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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Add table
Reference in a new issue