mirror of
https://ceregatti.org/git/daniel/dayzdockerserver.git
synced 2025-05-07 14:51:17 +00:00
16 lines
No EOL
479 B
Bash
Executable file
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 {} \; |