option for sv_lan

This commit is contained in:
Nicholas 2023-10-05 13:09:57 +02:00 committed by GitHub
parent 7cb18c531b
commit d53950d303
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 4 additions and 1 deletions

View file

@ -38,6 +38,7 @@ STEAMPASS="changeme" (Password for Steam User.)
STEAMGUARD="" (Optional, Steam Guard key if enabled. Use your most recent Steam Guard key.)
CS2_SERVERNAME="changeme" (Set the visible name for your private server)
CS2_PORT=27015 (CS2 server listen port tcp_udp)
CS2_LAN="0" (0 - LAN mode disabled, 1 - LAN Mode enabled)
CS2_RCONPW="changeme" (RCON password)
CS2_PW="changeme" (CS2 server password)
CS2_MAXPLAYERS=10 (Max players)

View file

@ -41,6 +41,7 @@ ENV CS2_SERVERNAME="cs2 private server" \
CS2_STARTMAP="de_inferno" \
CS2_GAMETYPE=0 \
CS2_GAMEMODE=0 \
CS2_LAN=0 \
CS2_ADDITIONAL_ARGS=""
# Set permissions on STEAMAPPDIR

View file

@ -13,6 +13,7 @@ cp /etc/server.cfg "${STEAMAPPDIR}"/game/csgo/cfg/server.cfg
sed -i "s/{{SERVER_HOSTNAME}}/${CS2_SERVERNAME}/g" "${STEAMAPPDIR}"/game/csgo/cfg/server.cfg
sed -i "s/{{SERVER_PW}}/${CS2_PW}/g" "${STEAMAPPDIR}"/game/csgo/cfg/server.cfg
sed -i "s/{{SERVER_RCON_PW}}/${CS2_RCONPW}/g" "${STEAMAPPDIR}"/game/csgo/cfg/server.cfg
sed -i "s/{{SERVER_LAN}}/${CS2_LAN}/g" "${STEAMAPPDIR}"/game/csgo/cfg/server.cfg
# Rewrite Config Files

View file

@ -1,7 +1,7 @@
// Server Defaults
hostname "{{SERVER_HOSTNAME}}"
sv_lan "0"
sv_lan "{{SERVER_LAN}"
// Passwords