= fix, default map env -> config
This commit is contained in:
parent
22af60a7fb
commit
caefb24b20
@ -14,7 +14,7 @@ ip="$SERVER_IP"
|
||||
port="$SERVER_PORT"
|
||||
clientport="$SERVER_CLIENTPORT"
|
||||
sourcetvport="$SERVER_SOURCETVPORT"
|
||||
defaultmap="gm_construct"
|
||||
defaultmap="$SERVER_DEFAULT_MAP"
|
||||
maxplayers="$SERVER_MAX_PLAYERS"
|
||||
tickrate="$SERVER_TICKRATE"
|
||||
gamemode="$SERVER_GAMEMODE"
|
||||
@ -36,7 +36,7 @@ gslt="$SERVER_LOGIN_TOKEN"
|
||||
## Server Start Command | https://docs.linuxgsm.com/configuration/start-parameters#additional-parameters
|
||||
fn_parms(){
|
||||
#shellcheck disable=SC2034,SC2154
|
||||
parms="-game garrysmod -strictportbind -ip ${ip} -port ${port} -tickrate ${tickrate} +host_workshop_collection ${wscollectionid} -authkey ${wsapikey} +clientport ${clientport} +tv_port ${sourcetvport} +gamemode ${gamemode} +map ${defaultmap} +sv_setsteamaccount ${gslt} +servercfgfile ${servercfg} -maxplayers ${maxplayers} ${customparms}"
|
||||
parms="-game garrysmod -strictportbind -ip ${ip} -port ${port} -tickrate ${tickrate} +host_workshop_collection ${wscollectionid} -authkey ${wsapikey} +clientport ${clientport} +tv_port ${sourcetvport} +gamemode ${gamemode} +map ${defaultmap} +sv_setsteamaccount ${gslt} +servercfgfile ${servercfg} -maxplayers ${maxplayers} +hostname '$servername' ${customparms}"
|
||||
}
|
||||
|
||||
#### LinuxGSM Settings ####
|
||||
|
Loading…
Reference in New Issue
Block a user