preset config
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Niklas 2021-04-12 17:35:34 +02:00
parent 440d1fe9d7
commit ab134d25da
4 changed files with 17 additions and 0 deletions

1
.gitignore vendored
View File

@ -5,3 +5,4 @@
!start.sh !start.sh
!README.md !README.md
!.drone.yml !.drone.yml
!server.cfg

View File

@ -1,6 +1,7 @@
FROM cm2network/steamcmd:latest FROM cm2network/steamcmd:latest
COPY start.sh /home/steam/start.sh COPY start.sh /home/steam/start.sh
COPY server.cfg /home/steam/server.cfg
WORKDIR /home/steam/ WORKDIR /home/steam/

14
server.cfg Normal file
View File

@ -0,0 +1,14 @@
hostname "Left4Dead2 Server"
sv_allow_lobby_connect_only "0"
mp_disable_autokick "1"
sv_alltalk "0"
sv_consistency "1"
sv_voiceenable "1"
sv_log_onefile "0"
sv_logbans "1"
sv_lan "0"
sv_pure "1"
sv_cheats "0"

View File

@ -9,6 +9,7 @@ echo "### Installing / Updateing l4d2 ###"
echo "### Creating config ###" echo "### Creating config ###"
cd $HOME/server cd $HOME/server
cp $HOME/server.cfg server.cfg
env | awk -F "=" '/^CVAR_/ {sub("CVAR_","",$1); print tolower($1),($2 ~ /^[0-9]+$/)?$2:"\""$2"\""}' > docker_server.cfg env | awk -F "=" '/^CVAR_/ {sub("CVAR_","",$1); print tolower($1),($2 ~ /^[0-9]+$/)?$2:"\""$2"\""}' > docker_server.cfg