dayzdockerserver/server.sh
Daniel Ceregatti 3c91314b49 Add missing lib.
Remove other packages that won't be used in docker.
Add more reporting when the server crashes. WIP.
2022-03-25 19:51:57 -07:00

21 lines
No EOL
837 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
sed -i serverDZ.cfg -e "s/SERVERNAME/${SERVERNAME}/"
./dayzserver start || (
echo
echo "========================================== error.log =========================================="
find /home/user -name error.log -exec cat {} \; -exec rm -f {} \;
echo
echo "========================================== script*.log =========================================="
find /home/user -name "script*.log" -exec cat {} \; -exec rm -f {} \;
echo
echo "========================================== *.RPT =========================================="
find /home/user -name "*.RPT" -exec cat {} \; -exec rm -f {} \;
)