option for sv_lan
This commit is contained in:
parent
7cb18c531b
commit
d53950d303
4 changed files with 4 additions and 1 deletions
|
@ -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)
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// Server Defaults
|
||||
|
||||
hostname "{{SERVER_HOSTNAME}}"
|
||||
sv_lan "0"
|
||||
sv_lan "{{SERVER_LAN}"
|
||||
|
||||
// Passwords
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue