added insecure mode
This commit is contained in:
parent
19e1f366c8
commit
4a3e7ad0c7
@ -7,9 +7,10 @@ services:
|
|||||||
- CVAR_HOSTNAME=My left 4 dead server
|
- CVAR_HOSTNAME=My left 4 dead server
|
||||||
- CVAR_RCON_PASSWORD=password123
|
- CVAR_RCON_PASSWORD=password123
|
||||||
- CVAR_SV_ALLOW_LOBBY_CONNECT_ONLY=0
|
- CVAR_SV_ALLOW_LOBBY_CONNECT_ONLY=0
|
||||||
- CVAR_SV_CONSISTENCY=1
|
- CVAR_SV_CONSISTENCY=0
|
||||||
- CAVR_SV_VOICEENABLE=1
|
- CAVR_SV_VOICEENABLE=1
|
||||||
- CVAR_MP_DISABLE_AUTOKICK=1
|
- CVAR_MP_DISABLE_AUTOKICK=1
|
||||||
|
- INSECURE=true
|
||||||
- "MOTD_FILE_CONTENT=Put your MODT here. \n
|
- "MOTD_FILE_CONTENT=Put your MODT here. \n
|
||||||
Multiline is also supported."
|
Multiline is also supported."
|
||||||
- "HOST_FILE_CONTENT=Same with the host file \n
|
- "HOST_FILE_CONTENT=Same with the host file \n
|
||||||
|
9
start.sh
9
start.sh
@ -25,4 +25,11 @@ env | awk -F "=" '/^CVAR_/ {sub("CVAR_","",$1); print tolower($1),($2 ~ /^[0-9]+
|
|||||||
|
|
||||||
cat /home/steam/server/left4dead2/cfg/server.cfg
|
cat /home/steam/server/left4dead2/cfg/server.cfg
|
||||||
|
|
||||||
"$HOME/server/srcds_run" -console -game left4dead2 +maxplayers 16 -maxclients 16 -ip 0.0.0.0
|
SRCDS_ARGS=""
|
||||||
|
|
||||||
|
if [ -n "$INSECURE" ]; then
|
||||||
|
SRCDS_ARGS="${SRCDS_ARGS} -insecure"
|
||||||
|
echo "Running with VAC disabled."
|
||||||
|
fi
|
||||||
|
|
||||||
|
"$HOME/server/srcds_run" -console -game left4dead2 +maxplayers 16 -maxclients 16 -ip 0.0.0.0 $SRCDS_ARGS
|
||||||
|
Loading…
Reference in New Issue
Block a user