= fix, default map env -> config

This commit is contained in:
Lucas Briese 2019-10-15 12:55:45 +02:00
parent 22af60a7fb
commit caefb24b20

View File

@ -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"
@ -35,8 +35,8 @@ 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}"
#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} +hostname '$servername' ${customparms}"
}
#### LinuxGSM Settings ####