This commit is contained in:
parent
440d1fe9d7
commit
ab134d25da
1
.gitignore
vendored
1
.gitignore
vendored
@ -5,3 +5,4 @@
|
|||||||
!start.sh
|
!start.sh
|
||||||
!README.md
|
!README.md
|
||||||
!.drone.yml
|
!.drone.yml
|
||||||
|
!server.cfg
|
@ -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
14
server.cfg
Normal 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"
|
1
start.sh
1
start.sh
@ -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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user