- misunderstand lgsm
This commit is contained in:
parent
deac02fa5c
commit
77965bd76a
@ -12,11 +12,11 @@ fi
|
||||
|
||||
## For "details" command: https://github.com/GameServerManagers/LinuxGSM/blob/master/lgsm/functions/info_messages.sh
|
||||
## fn_info_message_gameserver
|
||||
servername="$SERVER_NAME"
|
||||
serverpassword="$SERVER_PASSWORD"
|
||||
if [ ! -n "$SERVER_RCON_PASSWORD" ]; then
|
||||
rconpassword="$SERVER_RCON_PASSWORD"
|
||||
fi
|
||||
#servername="$SERVER_NAME"
|
||||
#serverpassword="$SERVER_PASSWORD"
|
||||
#if [ ! -n "$SERVER_RCON_PASSWORD" ]; then
|
||||
# rconpassword="$SERVER_RCON_PASSWORD"
|
||||
#fi
|
||||
|
||||
## Server Start Settings | https://docs.linuxgsm.com/configuration/start-parameters
|
||||
ip="$SERVER_IP"
|
||||
@ -45,7 +45,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} +hostname '$servername' ${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} ${customparms}"
|
||||
}
|
||||
|
||||
#### LinuxGSM Settings ####
|
||||
|
Loading…
Reference in New Issue
Block a user