mirror of
https://ceregatti.org/git/daniel/dayzdockerserver.git
synced 2025-05-07 06:41:17 +00:00
Add missing lib.
Remove other packages that won't be used in docker. Add more reporting when the server crashes. WIP.
This commit is contained in:
parent
0e25ac2bcf
commit
3c91314b49
2 changed files with 14 additions and 10 deletions
|
@ -9,19 +9,18 @@ RUN echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selectio
|
|||
# Add contrib and backports
|
||||
RUN sed -i /etc/apt/sources.list -e 's/main/main contrib/'
|
||||
|
||||
RUN echo 'deb http://deb.debian.org/debian bullseye-backports main' >> /etc/apt/sources.list
|
||||
#RUN echo 'deb http://deb.debian.org/debian bullseye-backports main' >> /etc/apt/sources.list
|
||||
|
||||
# Add 32 bit arch for steam crap
|
||||
RUN dpkg --add-architecture i386
|
||||
|
||||
# Install necessary packages
|
||||
RUN apt-get update && apt-get -y upgrade && apt-get -y install \
|
||||
tmux \
|
||||
nano \
|
||||
htop \
|
||||
curl \
|
||||
lib32gcc-s1 \
|
||||
lib32stdc++6 \
|
||||
libcap2 \
|
||||
locales \
|
||||
psmisc \
|
||||
wget \
|
||||
|
|
17
server.sh
17
server.sh
|
@ -6,11 +6,16 @@ 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 {} \;
|
||||
./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 {} \;
|
||||
)
|
Loading…
Add table
Reference in a new issue