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