Browse Source

list cluster config

pull/4200/head
Daniel Gibbs 2 years ago
parent
commit
ab7d0b6517
  1. 11
      lgsm/modules/info_game.sh
  2. 6
      lgsm/modules/info_messages.sh

11
lgsm/modules/info_game.sh

@ -388,6 +388,11 @@ fn_info_game_dodr() {
# Example: cluster_name = SERVERNAME
# Filetype: ini
fn_info_game_dst() {
if [ -f "${servercfgfullpath}" ]; then
fn_info_game_ini "port" "server_port"
fn_info_game_ini "steamauthport" "authentication_port"
fn_info_game_ini "steammasterport" "master_server_port"
fi
if [ -f "${clustercfgfullpath}" ]; then
fn_info_game_ini "maxplayers" "max_players" "${clustercfgfullpath}"
fn_info_game_ini "servername" "cluster_name" "${clustercfgfullpath}"
@ -397,11 +402,7 @@ fn_info_game_dst() {
fn_info_game_ini "gamemode" "game_mode" "${clustercfgfullpath}"
fn_info_game_ini "configip" "bind_ip" "${clustercfgfullpath}"
fi
if [ -f "${servercfgfullpath}" ]; then
fn_info_game_ini "port" "server_port"
fn_info_game_ini "steamauthport" "authentication_port"
fn_info_game_ini "steammasterport" "master_server_port"
fi
cave="${cave:-"NOT SET"}"
cluster="${cluster:-"NOT SET"}"
configip="${configip:-"0.0.0.0"}"

6
lgsm/modules/info_messages.sh

@ -593,6 +593,12 @@ fn_info_message_script() {
if [ -n "${networkcfgfullpath}" ]; then
echo -e "${lightblue}Network config file:\t${default}${networkcfgfullpath}"
fi
# Cluster config file location (DST)
if [ -n "${clustercfgfullpath}" ]; then
echo -e "${lightblue}Cluster config file:\t${default}${clustercfgfullpath}"
fi
} | column -s $'\t' -t
}

Loading…
Cancel
Save