Browse Source

lint

pull/4633/head
Daniel Gibbs 12 months ago
parent
commit
54c0c51ce3
No known key found for this signature in database GPG Key ID: 2076B128385E8C55
  1. 6
      lgsm/modules/info_game.sh
  2. 1
      lgsm/modules/install_config.sh

6
lgsm/modules/info_game.sh

@ -2247,15 +2247,15 @@ fn_info_game_wf() {
# Filetype: cfg # Filetype: cfg
fn_info_game_xnt() { fn_info_game_xnt() {
if [ -f "${servercfgfullpath}" ]; then if [ -f "${servercfgfullpath}" ]; then
fn_info_game_keyvalue_pairs_space "rconpassword" "rcon_password" fn_info_game_keyvalue_pairs_space "maxplayers" "maxplayers"
fn_info_game_keyvalue_pairs_space "port" "port" fn_info_game_keyvalue_pairs_space "port" "port"
fn_info_game_keyvalue_pairs_space "rconpassword" "rcon_password"
fn_info_game_keyvalue_pairs_space "servername" "hostname" fn_info_game_keyvalue_pairs_space "servername" "hostname"
fn_info_game_keyvalue_pairs_space "maxplayers" "maxplayers"
fi fi
rconpassword="${rconpassword:-"NOT SET"}"
maxplayers="${maxplayers:-"8"}" maxplayers="${maxplayers:-"8"}"
port="${port:-"0"}" port="${port:-"0"}"
queryport="${port}" queryport="${port}"
rconpassword="${rconpassword:-"NOT SET"}"
servername="${servername:-"NOT SET"}" servername="${servername:-"NOT SET"}"
} }

1
lgsm/modules/install_config.sh

@ -79,6 +79,7 @@ fn_default_config_local() {
fn_script_log_pass "copying config file [ ${servercfgdefault} ]: " fn_script_log_pass "copying config file [ ${servercfgdefault} ]: "
fi fi
} }
# Changes some variables within the default configs. # Changes some variables within the default configs.
# SERVERNAME to LinuxGSM # SERVERNAME to LinuxGSM
# PASSWORD to random password # PASSWORD to random password

Loading…
Cancel
Save