Browse Source

config settings update

pull/4633/head
Daniel Gibbs 12 months ago
parent
commit
16f12ff1f5
No known key found for this signature in database GPG Key ID: 2076B128385E8C55
  1. 5
      lgsm/config-default/config-lgsm/xntserver/_default.cfg
  2. 5
      lgsm/modules/fix_xnt.sh
  3. 10
      lgsm/modules/install_config.sh

5
lgsm/config-default/config-lgsm/xntserver/_default.cfg

@ -141,10 +141,11 @@ glibc="2.3.2"
## Game Server Directories
systemdir="${serverfiles}/Xonotic/"
executabledir="${serverfiles}/Xonotic/"
executabledir="${systemdir}"
executable="./xonotic-linux64-dedicated"
servercfgdir="${serverfiles}/Xonotic/${selfname}"
servercfgdir="${systemdir}/${selfname}"
servercfg="server.cfg"
servercfgdefault="${systemdir}/server/server.cfg"
servercfgfullpath="${servercfgdir}/${servercfg}"
## Backup Directory

5
lgsm/modules/fix_xnt.sh

@ -11,8 +11,3 @@ moduleselfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
if [ ! -d "${serverfiles}/Xonotic/${selfname}/data" ]; then
mkdir -p "${serverfiles}/Xonotic/${selfname}/data"
fi
# Copy the server.cfg file if it exists
if [ ! -f "${serverfiles}/Xonotic/${selfname}/data/server.cfg" ]; then
cp "${serverfiles}/Xonotic/server/server.cfg" "${serverfiles}/Xonotic/${selfname}/data/server.cfg"
fi

10
lgsm/modules/install_config.sh

@ -62,6 +62,12 @@ fn_default_config_local() {
fn_messages_separator
echo -e "Copying default configs."
fn_check_cfgdir
# Check if the directory for ${servercfgfullpath} exists, if not, create it
if [ ! -d "${servercfgfullpath}" ]; then
mkdir -p "${servercfgfullpath}"
fi
echo -en "copying config file [ ${italic}${servercfgdefault}${default} ]"
cp -n "${servercfgdir}/${servercfgdefault}" "${servercfgfullpath}"
if [ "${exitcode}" != 0 ]; then
@ -72,7 +78,6 @@ fn_default_config_local() {
fn_script_log_pass "copying config file [ ${servercfgdefault} ]"
fi
}
# Changes some variables within the default configs.
# SERVERNAME to LinuxGSM
# PASSWORD to random password
@ -835,6 +840,9 @@ elif [ "${shortname}" == "wmc" ]; then
fn_fetch_default_config
fn_default_config_remote
fn_set_config_vars
elif [ "${shortname}" == "xnt" ]; then
fn_default_config_local
fn_list_config_locations
elif [ "${shortname}" == "wurm" ]; then
array_configs+=(server.cfg)
fn_fetch_default_config

Loading…
Cancel
Save