From caefb24b2082209c29028fea8eca9c23f8cc6496 Mon Sep 17 00:00:00 2001 From: Lucas Briese Date: Tue, 15 Oct 2019 12:55:45 +0200 Subject: [PATCH] = fix, default map env -> config --- gmod/common.cfg | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gmod/common.cfg b/gmod/common.cfg index dcf08f5..4630955 100644 --- a/gmod/common.cfg +++ b/gmod/common.cfg @@ -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 ####