dayzdockerserver/server.sh
Daniel Ceregatti 8eed898bd4 First working prototype. It "works", but it still segs, which is the problem I was hoping to fix. Bummer.
Add the dayzserver from upstream, but a modified version that doesn't do all the tmux stuff.
2022-03-25 18:54:25 -07:00

20 lines
No EOL
561 B
Bash
Executable file

#!/usr/bin/env bash
# Make sure we don't start collecting core files
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
# Do something with SERVERNAME="DayZ on Linux for Linux"
if ! grep SERVERNAME serverDZ.cfg
then
echo "Setting the SERVERNAME..."
sed -i serverDZ.cfg -e "s/SERVERNAME/${SERVERNAME}/"
fi
./dayzserver start || find /home/user -name error.log -exec cat {} \;