Daniel Gibbs
12 months ago
No known key found for this signature in database
GPG Key ID: 2076B128385E8C55
3 changed files with
12 additions and
8 deletions
-
lgsm/config-default/config-lgsm/xntserver/_default.cfg
-
lgsm/modules/fix_xnt.sh
-
lgsm/modules/install_config.sh
|
|
@ -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 |
|
|
|
|
|
@ -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 |
|
|
|
|
|
@ -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 |
|
|
|