= fix, default map env -> config
This commit is contained in:
parent
22af60a7fb
commit
caefb24b20
@ -14,7 +14,7 @@ ip="$SERVER_IP"
|
|||||||
port="$SERVER_PORT"
|
port="$SERVER_PORT"
|
||||||
clientport="$SERVER_CLIENTPORT"
|
clientport="$SERVER_CLIENTPORT"
|
||||||
sourcetvport="$SERVER_SOURCETVPORT"
|
sourcetvport="$SERVER_SOURCETVPORT"
|
||||||
defaultmap="gm_construct"
|
defaultmap="$SERVER_DEFAULT_MAP"
|
||||||
maxplayers="$SERVER_MAX_PLAYERS"
|
maxplayers="$SERVER_MAX_PLAYERS"
|
||||||
tickrate="$SERVER_TICKRATE"
|
tickrate="$SERVER_TICKRATE"
|
||||||
gamemode="$SERVER_GAMEMODE"
|
gamemode="$SERVER_GAMEMODE"
|
||||||
@ -35,8 +35,8 @@ gslt="$SERVER_LOGIN_TOKEN"
|
|||||||
|
|
||||||
## Server Start Command | https://docs.linuxgsm.com/configuration/start-parameters#additional-parameters
|
## Server Start Command | https://docs.linuxgsm.com/configuration/start-parameters#additional-parameters
|
||||||
fn_parms(){
|
fn_parms(){
|
||||||
#shellcheck disable=SC2034,SC2154
|
#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 ####
|
#### LinuxGSM Settings ####
|
||||||
|
Loading…
Reference in New Issue
Block a user