Browse Source

update config parsing

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

10
lgsm/modules/info_game.sh

@ -2242,15 +2242,15 @@ fn_info_game_wf() {
servername="${servername:-"NOT SET"}"
}
# Config Type: Xonotic
# Config Type: QuakeC
# Comment: //
# Filetype: cfg
fn_info_game_xnt() {
if [ -f "${servercfgfullpath}" ]; then
fn_info_game_quakec "rconpassword" "rcon_password"
fn_info_game_quakec "port" "port"
fn_info_game_quakec "servername" "hostname"
fn_info_game_quakec "maxplayers" "maxplayers"
fn_info_game_keyvalue_pairs_space "rconpassword" "rcon_password"
fn_info_game_keyvalue_pairs_space "port" "port"
fn_info_game_keyvalue_pairs_space "servername" "hostname"
fn_info_game_keyvalue_pairs_space "maxplayers" "maxplayers"
fi
rconpassword="${rconpassword:-"NOT SET"}"
maxplayers="${maxplayers:-"8"}"

2
lgsm/modules/install_config.sh

@ -68,7 +68,7 @@ fn_default_config_local() {
mkdir -p "$(dirname "${servercfgfullpath}")"
fi
echo -en "copying config file [ ${italic}${servercfgdefault}${default} ]"
echo -en "copying config file [ ${italic}${servercfgdefault}${default} ]: "
cp --update=none "${servercfgdir}/${servercfgdefault}" "${servercfgfullpath}"
exitcode=$?
if [ "${exitcode}" != 0 ]; then

Loading…
Cancel
Save