dayzdockerserver/server.sh
2022-03-25 19:06:02 -07:00

16 lines
No EOL
479 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.
echo "steamlogin=anonymous" > .steamlogin
# 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 {} \;