|
@@ -16,43 +16,76 @@ fn_check_cfgdir() {
|
|
|
fi
|
|
fi
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-# Downloads default configs from Game-Server-Configs repo to lgsm/config-default.
|
|
|
|
|
-fn_fetch_default_config() {
|
|
|
|
|
|
|
+# Copys default configs from Game-Server-Configs repo to server config location.
|
|
|
|
|
+fn_default_config_remote() {
|
|
|
echo -e ""
|
|
echo -e ""
|
|
|
echo -e "${bold}${lightyellow}Downloading ${gamename} Configs${default}"
|
|
echo -e "${bold}${lightyellow}Downloading ${gamename} Configs${default}"
|
|
|
fn_messages_separator
|
|
fn_messages_separator
|
|
|
- echo -e "Downloading default configs from:"
|
|
|
|
|
- echo -e ""
|
|
|
|
|
- echo -e "${italic}https://github.com/GameServerManagers/Game-Server-Configs${default}"
|
|
|
|
|
|
|
+ echo -e "Downloading default configs from: ${italic}https://github.com/GameServerManagers/Game-Server-Configs${default}"
|
|
|
echo -e ""
|
|
echo -e ""
|
|
|
fn_sleep_time_1
|
|
fn_sleep_time_1
|
|
|
mkdir -p "${lgsmdir}/config-default/config-game"
|
|
mkdir -p "${lgsmdir}/config-default/config-game"
|
|
|
githuburl="https://raw.githubusercontent.com/GameServerManagers/Game-Server-Configs/main"
|
|
githuburl="https://raw.githubusercontent.com/GameServerManagers/Game-Server-Configs/main"
|
|
|
for config in "${array_configs[@]}"; do
|
|
for config in "${array_configs[@]}"; do
|
|
|
|
|
+ # Downloads default configs from Game-Server-Configs repo to lgsm/config-default.
|
|
|
fn_fetch_file "${githuburl}/${shortname}/${config}" "${remote_fileurl_backup}" "GitHub" "Bitbucket" "${lgsmdir}/config-default/config-game" "${config}" "nochmodx" "norun" "forcedl" "nohash"
|
|
fn_fetch_file "${githuburl}/${shortname}/${config}" "${remote_fileurl_backup}" "GitHub" "Bitbucket" "${lgsmdir}/config-default/config-game" "${config}" "nochmodx" "norun" "forcedl" "nohash"
|
|
|
- done
|
|
|
|
|
-}
|
|
|
|
|
|
|
|
|
|
-# Copys default configs from Game-Server-Configs repo to server config location.
|
|
|
|
|
-fn_default_config_remote() {
|
|
|
|
|
- for config in "${array_configs[@]}"; do
|
|
|
|
|
- # every config is copied
|
|
|
|
|
- echo -e "copying ${config} config file."
|
|
|
|
|
- fn_script_log_info "Copying ${servercfg} config file."
|
|
|
|
|
|
|
+ # Every config is copied.
|
|
|
if [ "${config}" == "${servercfgdefault}" ]; then
|
|
if [ "${config}" == "${servercfgdefault}" ]; then
|
|
|
mkdir -p "${servercfgdir}"
|
|
mkdir -p "${servercfgdir}"
|
|
|
- cp -nv "${lgsmdir}/config-default/config-game/${config}" "${servercfgfullpath}"
|
|
|
|
|
|
|
+ echo -en "copying config file [ ${italic}${servercfgfullpath}${default} ]"
|
|
|
|
|
+ changes+=$(cp -nv "${lgsmdir}/config-default/config-game/${config}" "${servercfgfullpath}")
|
|
|
|
|
+ exitcode=$?
|
|
|
|
|
+ if [ "${exitcode}" -ne 0 ]; then
|
|
|
|
|
+ fn_print_fail_eol_nl
|
|
|
|
|
+ fn_script_log_fail "copying config file ${servercfgfullpath}"
|
|
|
|
|
+ elif [ "${changes}" != "" ]; then
|
|
|
|
|
+ fn_print_ok_eol_nl
|
|
|
|
|
+ fn_script_log_pass "copying config file ${servercfgfullpath}"
|
|
|
|
|
+ else
|
|
|
|
|
+ fn_print_skip_eol_nl
|
|
|
|
|
+ fi
|
|
|
elif [ "${shortname}" == "arma3" ] && [ "${config}" == "${networkcfgdefault}" ]; then
|
|
elif [ "${shortname}" == "arma3" ] && [ "${config}" == "${networkcfgdefault}" ]; then
|
|
|
mkdir -p "${servercfgdir}"
|
|
mkdir -p "${servercfgdir}"
|
|
|
- cp -nv "${lgsmdir}/config-default/config-game/${config}" "${networkcfgfullpath}"
|
|
|
|
|
|
|
+ echo -en "copying config file [ ${italic}${networkcfgfullpath}${default} ]"
|
|
|
|
|
+ changes+=$(cp -nv "${lgsmdir}/config-default/config-game/${config}" "${networkcfgfullpath}")
|
|
|
|
|
+ if [ "${exitcode}" -ne 0 ]; then
|
|
|
|
|
+ fn_print_fail_eol_nl
|
|
|
|
|
+ fn_script_log_fail "copying config file ${networkcfgdefault}"
|
|
|
|
|
+ elif [ "${changes}" != "" ]; then
|
|
|
|
|
+ fn_print_ok_eol_nl
|
|
|
|
|
+ fn_script_log_pass "copying config file ${networkcfgdefault}"
|
|
|
|
|
+ else
|
|
|
|
|
+ fn_print_skip_eol_nl
|
|
|
|
|
+ fi
|
|
|
elif [ "${shortname}" == "dst" ] && [ "${config}" == "${clustercfgdefault}" ]; then
|
|
elif [ "${shortname}" == "dst" ] && [ "${config}" == "${clustercfgdefault}" ]; then
|
|
|
- cp -nv "${lgsmdir}/config-default/config-game/${clustercfgdefault}" "${clustercfgfullpath}"
|
|
|
|
|
|
|
+ echo -en "copying config file [ ${italic}${clustercfgfullpath}${default} ]"
|
|
|
|
|
+ changes+=$(cp -nv "${lgsmdir}/config-default/config-game/${clustercfgdefault}" "${clustercfgfullpath}")
|
|
|
|
|
+ if [ "${exitcode}" -ne 0 ]; then
|
|
|
|
|
+ fn_print_fail_eol_nl
|
|
|
|
|
+ fn_script_log_fail "copying config file ${clustercfgfullpath}"
|
|
|
|
|
+ elif [ "${changes}" != "" ]; then
|
|
|
|
|
+ fn_print_ok_eol_nl
|
|
|
|
|
+ fn_script_log_pass "copying config file ${clustercfgfullpath}"
|
|
|
|
|
+ else
|
|
|
|
|
+ fn_print_skip_eol_nl
|
|
|
|
|
+ fi
|
|
|
else
|
|
else
|
|
|
- mkdir -p "${servercfgdir}"
|
|
|
|
|
- cp -nv "${lgsmdir}/config-default/config-game/${config}" "${servercfgdir}/${config}"
|
|
|
|
|
|
|
+ echo -en "copying config file [ ${italic}${servercfgdir}/${config}${default} ]"
|
|
|
|
|
+ changes+=$(cp -nv "${lgsmdir}/config-default/config-game/${config}" "${servercfgdir}/${config}")
|
|
|
|
|
+ if [ "${exitcode}" -ne 0 ]; then
|
|
|
|
|
+ fn_print_fail_eol_nl
|
|
|
|
|
+ fn_script_log_fail "copying config file ${servercfgdir}/${config}"
|
|
|
|
|
+ elif [ "${changes}" != "" ]; then
|
|
|
|
|
+ fn_print_ok_eol_nl
|
|
|
|
|
+ fn_script_log_pass "copying config file ${servercfgdir}/${config}"
|
|
|
|
|
+ else
|
|
|
|
|
+ fn_print_skip_eol_nl
|
|
|
|
|
+ fi
|
|
|
fi
|
|
fi
|
|
|
|
|
+
|
|
|
|
|
+ unset changes
|
|
|
done
|
|
done
|
|
|
- fn_sleep_time
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
# Copys local default config to server config location.
|
|
# Copys local default config to server config location.
|
|
@@ -71,7 +104,7 @@ fn_default_config_local() {
|
|
|
echo -en "copying config file [ ${italic}${servercfgdefault}${default} ]: "
|
|
echo -en "copying config file [ ${italic}${servercfgdefault}${default} ]: "
|
|
|
cp --update=none "${servercfgdir}/${servercfgdefault}" "${servercfgfullpath}"
|
|
cp --update=none "${servercfgdir}/${servercfgdefault}" "${servercfgfullpath}"
|
|
|
exitcode=$?
|
|
exitcode=$?
|
|
|
- if [ "${exitcode}" != 0 ]; then
|
|
|
|
|
|
|
+ if [ "${exitcode}" -ne 0 ]; then
|
|
|
fn_print_fail_eol
|
|
fn_print_fail_eol
|
|
|
fn_script_log_fail "copying config file [ ${servercfgdefault} ]: "
|
|
fn_script_log_fail "copying config file [ ${servercfgdefault} ]: "
|
|
|
else
|
|
else
|
|
@@ -87,30 +120,48 @@ fn_set_config_vars() {
|
|
|
if [ -f "${servercfgfullpath}" ]; then
|
|
if [ -f "${servercfgfullpath}" ]; then
|
|
|
randomstring=$(tr -dc 'A-Za-z0-9_' < /dev/urandom 2> /dev/null | head -c 8 | xargs)
|
|
randomstring=$(tr -dc 'A-Za-z0-9_' < /dev/urandom 2> /dev/null | head -c 8 | xargs)
|
|
|
servername="LinuxGSM"
|
|
servername="LinuxGSM"
|
|
|
- rconpass="admin${randomstring}"
|
|
|
|
|
- echo -e "changing hostname."
|
|
|
|
|
- fn_script_log_info "Changing hostname."
|
|
|
|
|
|
|
+ adminpass="admin${randomstring}"
|
|
|
|
|
+ echo -en "setting hostname\c"
|
|
|
|
|
+ fn_script_log_info "setting hostname"
|
|
|
fn_sleep_time
|
|
fn_sleep_time
|
|
|
# prevents var from being overwritten with the servername.
|
|
# prevents var from being overwritten with the servername.
|
|
|
if grep -q "SERVERNAME=SERVERNAME" "${lgsmdir}/config-default/config-game/${config}" 2> /dev/null; then
|
|
if grep -q "SERVERNAME=SERVERNAME" "${lgsmdir}/config-default/config-game/${config}" 2> /dev/null; then
|
|
|
- sed -i "s/SERVERNAME=SERVERNAME/SERVERNAME=${servername}/g" "${servercfgfullpath}"
|
|
|
|
|
|
|
+ changes+=$(sed -i "s/SERVERNAME=SERVERNAME/SERVERNAME=${servername}/g w /dev/stdout" "${servercfgfullpath}")
|
|
|
elif grep -q "SERVERNAME=\"SERVERNAME\"" "${lgsmdir}/config-default/config-game/${config}" 2> /dev/null; then
|
|
elif grep -q "SERVERNAME=\"SERVERNAME\"" "${lgsmdir}/config-default/config-game/${config}" 2> /dev/null; then
|
|
|
- sed -i "s/SERVERNAME=\"SERVERNAME\"/SERVERNAME=\"${servername}\"/g" "${servercfgfullpath}"
|
|
|
|
|
|
|
+ changes+=$(sed -i "s/SERVERNAME=\"SERVERNAME\"/SERVERNAME=\"${servername}\"/g w /dev/stdout" "${servercfgfullpath}")
|
|
|
else
|
|
else
|
|
|
- sed -i "s/SERVERNAME/${servername}/g" "${servercfgfullpath}"
|
|
|
|
|
|
|
+ changes+=$(sed -i "s/SERVERNAME/${servername}/g w /dev/stdout" "${servercfgfullpath}")
|
|
|
fi
|
|
fi
|
|
|
- echo -e "changing rcon/admin password."
|
|
|
|
|
- fn_script_log_info "Changing rcon/admin password."
|
|
|
|
|
- if [ "${shortname}" == "squad" ]; then
|
|
|
|
|
- sed -i "s/ADMINPASSWORD/${rconpass}/g" "${servercfgdir}/Rcon.cfg"
|
|
|
|
|
|
|
+ exitcode=$?
|
|
|
|
|
+ if [ "${exitcode}" -ne 0 ]; then
|
|
|
|
|
+ fn_print_fail_eol
|
|
|
|
|
+ fn_script_log_fail "setting hostname"
|
|
|
|
|
+ elif [ "${changes}" != "" ]; then
|
|
|
|
|
+ fn_print_ok_eol_nl
|
|
|
|
|
+ fn_script_log_pass "setting hostname"
|
|
|
else
|
|
else
|
|
|
- sed -i "s/ADMINPASSWORD/${rconpass}/g" "${servercfgfullpath}"
|
|
|
|
|
|
|
+ fn_print_skip_eol_nl
|
|
|
fi
|
|
fi
|
|
|
|
|
+
|
|
|
|
|
+ echo -en "generating admin/rcon password\c"
|
|
|
|
|
+ fn_script_log_info "generating admin/rcon password"
|
|
|
fn_sleep_time
|
|
fn_sleep_time
|
|
|
- else
|
|
|
|
|
- fn_script_log_warn "Config file not found, cannot alter it."
|
|
|
|
|
- echo -e "Config file not found, cannot alter it."
|
|
|
|
|
- fn_sleep_time
|
|
|
|
|
|
|
+ if [ "${shortname}" == "squad" ]; then
|
|
|
|
|
+ changes+=$(sed -i "s/ADMINPASSWORD/${adminpass}/g w /dev/stdout" "${servercfgdir}/Rcon.cfg")
|
|
|
|
|
+ else
|
|
|
|
|
+ changes+=$(sed -i "s/ADMINPASSWORD/${adminpass}/g w /dev/stdout" "${servercfgfullpath}")
|
|
|
|
|
+ fi
|
|
|
|
|
+ exitcode=$?
|
|
|
|
|
+ if [ "${exitcode}" -ne 0 ]; then
|
|
|
|
|
+ fn_print_fail_eol
|
|
|
|
|
+ fn_script_log_fail "generating admin/rcon password"
|
|
|
|
|
+ elif [ "${changes}" != "" ]; then
|
|
|
|
|
+ fn_print_ok_eol_nl
|
|
|
|
|
+ fn_script_log_pass "generating admin/rcon password"
|
|
|
|
|
+ else
|
|
|
|
|
+ fn_print_skip_eol_nl
|
|
|
|
|
+ fi
|
|
|
|
|
+ unset changes
|
|
|
fi
|
|
fi
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -164,22 +215,22 @@ fn_set_dst_config_vars() {
|
|
|
echo -e ""
|
|
echo -e ""
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-# Lists local config file locations
|
|
|
|
|
|
|
+# Lists local config locations
|
|
|
fn_list_config_locations() {
|
|
fn_list_config_locations() {
|
|
|
echo -e ""
|
|
echo -e ""
|
|
|
echo -e "${bold}${lightyellow}Config Locations${default}"
|
|
echo -e "${bold}${lightyellow}Config Locations${default}"
|
|
|
fn_messages_separator
|
|
fn_messages_separator
|
|
|
if [ -n "${servercfgfullpath}" ]; then
|
|
if [ -n "${servercfgfullpath}" ]; then
|
|
|
if [ -f "${servercfgfullpath}" ]; then
|
|
if [ -f "${servercfgfullpath}" ]; then
|
|
|
- echo -e "Game Server Config File: ${servercfgfullpath}"
|
|
|
|
|
|
|
+ echo -e "${gamename} config file: ${italic}${servercfgfullpath}${default}"
|
|
|
elif [ -d "${servercfgfullpath}" ]; then
|
|
elif [ -d "${servercfgfullpath}" ]; then
|
|
|
- echo -e "Game Server Config Dir: ${servercfgfullpath}"
|
|
|
|
|
|
|
+ echo -e "${gamename} config directory: ${italic}${servercfgfullpath}"
|
|
|
else
|
|
else
|
|
|
- echo -e "Config file: ${red}${servercfgfullpath}${default} (${red}FILE MISSING${default})"
|
|
|
|
|
|
|
+ echo -e "${gamename} config: ${italic}${red}${servercfgfullpath}${default} (${red}CONFIG IS MISSING${default})"
|
|
|
fi
|
|
fi
|
|
|
fi
|
|
fi
|
|
|
- echo -e "LinuxGSM Config: ${lgsmdir}/config-lgsm/${gameservername}"
|
|
|
|
|
- echo -e "Documentation: https://docs.linuxgsm.com/configuration/game-server-config"
|
|
|
|
|
|
|
+ echo -e "LinuxGSM config: ${italic}${lgsmdir}/config-lgsm/${gameservername}${default}"
|
|
|
|
|
+ echo -e "Config documentation: ${italic}https://docs.linuxgsm.com/configuration${default}"
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
if [ "${shortname}" == "sdtd" ]; then
|
|
if [ "${shortname}" == "sdtd" ]; then
|
|
@@ -187,66 +238,51 @@ if [ "${shortname}" == "sdtd" ]; then
|
|
|
fn_list_config_locations
|
|
fn_list_config_locations
|
|
|
elif [ "${shortname}" == "ac" ]; then
|
|
elif [ "${shortname}" == "ac" ]; then
|
|
|
array_configs+=(server_cfg.ini)
|
|
array_configs+=(server_cfg.ini)
|
|
|
- fn_fetch_default_config
|
|
|
|
|
fn_default_config_remote
|
|
fn_default_config_remote
|
|
|
fn_set_config_vars
|
|
fn_set_config_vars
|
|
|
fn_list_config_locations
|
|
fn_list_config_locations
|
|
|
elif [ "${shortname}" == "ahl" ]; then
|
|
elif [ "${shortname}" == "ahl" ]; then
|
|
|
array_configs+=(server.cfg)
|
|
array_configs+=(server.cfg)
|
|
|
- fn_fetch_default_config
|
|
|
|
|
fn_default_config_remote
|
|
fn_default_config_remote
|
|
|
fn_set_config_vars
|
|
fn_set_config_vars
|
|
|
fn_list_config_locations
|
|
fn_list_config_locations
|
|
|
elif [ "${shortname}" == "ahl2" ]; then
|
|
elif [ "${shortname}" == "ahl2" ]; then
|
|
|
array_configs+=(server.cfg)
|
|
array_configs+=(server.cfg)
|
|
|
- fn_fetch_default_config
|
|
|
|
|
fn_default_config_remote
|
|
fn_default_config_remote
|
|
|
fn_set_config_vars
|
|
fn_set_config_vars
|
|
|
fn_list_config_locations
|
|
fn_list_config_locations
|
|
|
elif [ "${shortname}" == "ark" ]; then
|
|
elif [ "${shortname}" == "ark" ]; then
|
|
|
- fn_check_cfgdir
|
|
|
|
|
array_configs+=(GameUserSettings.ini)
|
|
array_configs+=(GameUserSettings.ini)
|
|
|
- fn_fetch_default_config
|
|
|
|
|
fn_default_config_remote
|
|
fn_default_config_remote
|
|
|
fn_set_config_vars
|
|
fn_set_config_vars
|
|
|
fn_list_config_locations
|
|
fn_list_config_locations
|
|
|
elif [ "${shortname}" == "arma3" ]; then
|
|
elif [ "${shortname}" == "arma3" ]; then
|
|
|
- fn_check_cfgdir
|
|
|
|
|
array_configs+=(server.cfg network.cfg)
|
|
array_configs+=(server.cfg network.cfg)
|
|
|
- fn_fetch_default_config
|
|
|
|
|
fn_default_config_remote
|
|
fn_default_config_remote
|
|
|
fn_set_config_vars
|
|
fn_set_config_vars
|
|
|
fn_list_config_locations
|
|
fn_list_config_locations
|
|
|
elif [ "${shortname}" == "armar" ]; then
|
|
elif [ "${shortname}" == "armar" ]; then
|
|
|
- fn_check_cfgdir
|
|
|
|
|
array_configs+=(server.json)
|
|
array_configs+=(server.json)
|
|
|
- fn_fetch_default_config
|
|
|
|
|
fn_default_config_remote
|
|
fn_default_config_remote
|
|
|
fn_set_config_vars
|
|
fn_set_config_vars
|
|
|
fn_list_config_locations
|
|
fn_list_config_locations
|
|
|
elif [ "${shortname}" == "ats" ]; then
|
|
elif [ "${shortname}" == "ats" ]; then
|
|
|
- fn_check_cfgdir
|
|
|
|
|
array_configs+=(server_config.sii)
|
|
array_configs+=(server_config.sii)
|
|
|
- fn_fetch_default_config
|
|
|
|
|
fn_default_config_remote
|
|
fn_default_config_remote
|
|
|
fn_set_config_vars
|
|
fn_set_config_vars
|
|
|
fn_list_config_locations
|
|
fn_list_config_locations
|
|
|
elif [ "${shortname}" == "bo" ]; then
|
|
elif [ "${shortname}" == "bo" ]; then
|
|
|
array_configs+=(config.txt)
|
|
array_configs+=(config.txt)
|
|
|
- fn_fetch_default_config
|
|
|
|
|
fn_default_config_remote
|
|
fn_default_config_remote
|
|
|
fn_set_config_vars
|
|
fn_set_config_vars
|
|
|
fn_list_config_locations
|
|
fn_list_config_locations
|
|
|
elif [ "${shortname}" == "bd" ]; then
|
|
elif [ "${shortname}" == "bd" ]; then
|
|
|
array_configs+=(server.cfg)
|
|
array_configs+=(server.cfg)
|
|
|
- fn_fetch_default_config
|
|
|
|
|
fn_default_config_remote
|
|
fn_default_config_remote
|
|
|
fn_set_config_vars
|
|
fn_set_config_vars
|
|
|
fn_list_config_locations
|
|
fn_list_config_locations
|
|
|
elif [ "${shortname}" == "bt" ]; then
|
|
elif [ "${shortname}" == "bt" ]; then
|
|
|
- fn_check_cfgdir
|
|
|
|
|
array_configs+=(serversettings.xml)
|
|
array_configs+=(serversettings.xml)
|
|
|
- fn_fetch_default_config
|
|
|
|
|
fn_default_config_remote
|
|
fn_default_config_remote
|
|
|
fn_set_config_vars
|
|
fn_set_config_vars
|
|
|
fn_list_config_locations
|
|
fn_list_config_locations
|
|
@@ -259,91 +295,76 @@ elif [ "${shortname}" == "btl" ]; then
|
|
|
fn_list_config_locations
|
|
fn_list_config_locations
|
|
|
elif [ "${shortname}" == "bf1942" ]; then
|
|
elif [ "${shortname}" == "bf1942" ]; then
|
|
|
array_configs+=(serversettings.con)
|
|
array_configs+=(serversettings.con)
|
|
|
- fn_fetch_default_config
|
|
|
|
|
fn_default_config_remote
|
|
fn_default_config_remote
|
|
|
fn_set_config_vars
|
|
fn_set_config_vars
|
|
|
fn_list_config_locations
|
|
fn_list_config_locations
|
|
|
elif [ "${shortname}" == "bfv" ]; then
|
|
elif [ "${shortname}" == "bfv" ]; then
|
|
|
array_configs+=(serversettings.con)
|
|
array_configs+=(serversettings.con)
|
|
|
- fn_fetch_default_config
|
|
|
|
|
fn_default_config_remote
|
|
fn_default_config_remote
|
|
|
fn_set_config_vars
|
|
fn_set_config_vars
|
|
|
fn_list_config_locations
|
|
fn_list_config_locations
|
|
|
elif [ "${shortname}" == "bs" ]; then
|
|
elif [ "${shortname}" == "bs" ]; then
|
|
|
array_configs+=(server.cfg)
|
|
array_configs+=(server.cfg)
|
|
|
- fn_fetch_default_config
|
|
|
|
|
fn_default_config_remote
|
|
fn_default_config_remote
|
|
|
fn_set_config_vars
|
|
fn_set_config_vars
|
|
|
fn_list_config_locations
|
|
fn_list_config_locations
|
|
|
elif [ "${shortname}" == "bb" ]; then
|
|
elif [ "${shortname}" == "bb" ]; then
|
|
|
array_configs+=(server.cfg)
|
|
array_configs+=(server.cfg)
|
|
|
- fn_fetch_default_config
|
|
|
|
|
fn_default_config_remote
|
|
fn_default_config_remote
|
|
|
fn_set_config_vars
|
|
fn_set_config_vars
|
|
|
fn_list_config_locations
|
|
fn_list_config_locations
|
|
|
elif [ "${shortname}" == "bb2" ]; then
|
|
elif [ "${shortname}" == "bb2" ]; then
|
|
|
array_configs+=(server.cfg)
|
|
array_configs+=(server.cfg)
|
|
|
- fn_fetch_default_config
|
|
|
|
|
fn_default_config_remote
|
|
fn_default_config_remote
|
|
|
fn_set_config_vars
|
|
fn_set_config_vars
|
|
|
fn_list_config_locations
|
|
fn_list_config_locations
|
|
|
elif [ "${shortname}" == "bmdm" ]; then
|
|
elif [ "${shortname}" == "bmdm" ]; then
|
|
|
array_configs+=(server.cfg)
|
|
array_configs+=(server.cfg)
|
|
|
- fn_fetch_default_config
|
|
|
|
|
fn_default_config_remote
|
|
fn_default_config_remote
|
|
|
fn_set_config_vars
|
|
fn_set_config_vars
|
|
|
fn_list_config_locations
|
|
fn_list_config_locations
|
|
|
elif [ "${shortname}" == "ck" ]; then
|
|
elif [ "${shortname}" == "ck" ]; then
|
|
|
array_configs+=(ServerConfig.json)
|
|
array_configs+=(ServerConfig.json)
|
|
|
- fn_fetch_default_config
|
|
|
|
|
fn_default_config_remote
|
|
fn_default_config_remote
|
|
|
fn_set_config_vars
|
|
fn_set_config_vars
|
|
|
fn_list_config_locations
|
|
fn_list_config_locations
|
|
|
elif [ "${shortname}" == "cod" ]; then
|
|
elif [ "${shortname}" == "cod" ]; then
|
|
|
array_configs+=(server.cfg)
|
|
array_configs+=(server.cfg)
|
|
|
- fn_fetch_default_config
|
|
|
|
|
fn_default_config_remote
|
|
fn_default_config_remote
|
|
|
fn_set_config_vars
|
|
fn_set_config_vars
|
|
|
fn_list_config_locations
|
|
fn_list_config_locations
|
|
|
elif [ "${shortname}" == "coduo" ]; then
|
|
elif [ "${shortname}" == "coduo" ]; then
|
|
|
array_configs+=(server.cfg)
|
|
array_configs+=(server.cfg)
|
|
|
- fn_fetch_default_config
|
|
|
|
|
fn_default_config_remote
|
|
fn_default_config_remote
|
|
|
fn_set_config_vars
|
|
fn_set_config_vars
|
|
|
fn_list_config_locations
|
|
fn_list_config_locations
|
|
|
elif [ "${shortname}" == "cod2" ]; then
|
|
elif [ "${shortname}" == "cod2" ]; then
|
|
|
array_configs+=(server.cfg)
|
|
array_configs+=(server.cfg)
|
|
|
- fn_fetch_default_config
|
|
|
|
|
fn_default_config_remote
|
|
fn_default_config_remote
|
|
|
fn_set_config_vars
|
|
fn_set_config_vars
|
|
|
fn_list_config_locations
|
|
fn_list_config_locations
|
|
|
elif [ "${shortname}" == "cod4" ]; then
|
|
elif [ "${shortname}" == "cod4" ]; then
|
|
|
array_configs+=(server.cfg)
|
|
array_configs+=(server.cfg)
|
|
|
- fn_fetch_default_config
|
|
|
|
|
fn_default_config_remote
|
|
fn_default_config_remote
|
|
|
fn_set_config_vars
|
|
fn_set_config_vars
|
|
|
fn_list_config_locations
|
|
fn_list_config_locations
|
|
|
elif [ "${shortname}" == "codwaw" ]; then
|
|
elif [ "${shortname}" == "codwaw" ]; then
|
|
|
array_configs+=(server.cfg)
|
|
array_configs+=(server.cfg)
|
|
|
- fn_fetch_default_config
|
|
|
|
|
fn_default_config_remote
|
|
fn_default_config_remote
|
|
|
fn_set_config_vars
|
|
fn_set_config_vars
|
|
|
fn_list_config_locations
|
|
fn_list_config_locations
|
|
|
elif [ "${shortname}" == "cc" ]; then
|
|
elif [ "${shortname}" == "cc" ]; then
|
|
|
array_configs+=(server.cfg)
|
|
array_configs+=(server.cfg)
|
|
|
- fn_fetch_default_config
|
|
|
|
|
fn_default_config_remote
|
|
fn_default_config_remote
|
|
|
fn_set_config_vars
|
|
fn_set_config_vars
|
|
|
fn_list_config_locations
|
|
fn_list_config_locations
|
|
|
elif [ "${shortname}" == "col" ]; then
|
|
elif [ "${shortname}" == "col" ]; then
|
|
|
array_configs+=(colserver.json)
|
|
array_configs+=(colserver.json)
|
|
|
- fn_fetch_default_config
|
|
|
|
|
fn_default_config_remote
|
|
fn_default_config_remote
|
|
|
fn_set_config_vars
|
|
fn_set_config_vars
|
|
|
fn_list_config_locations
|
|
fn_list_config_locations
|
|
|
elif [ "${shortname}" == "cs" ]; then
|
|
elif [ "${shortname}" == "cs" ]; then
|
|
|
array_configs+=(server.cfg)
|
|
array_configs+=(server.cfg)
|
|
|
- fn_fetch_default_config
|
|
|
|
|
fn_default_config_remote
|
|
fn_default_config_remote
|
|
|
fn_set_config_vars
|
|
fn_set_config_vars
|
|
|
fn_list_config_locations
|
|
fn_list_config_locations
|
|
@@ -355,86 +376,70 @@ elif [ "${shortname}" == "cs2" ]; then
|
|
|
fn_list_config_locations
|
|
fn_list_config_locations
|
|
|
elif [ "${shortname}" == "cscz" ]; then
|
|
elif [ "${shortname}" == "cscz" ]; then
|
|
|
array_configs+=(server.cfg)
|
|
array_configs+=(server.cfg)
|
|
|
- fn_fetch_default_config
|
|
|
|
|
fn_default_config_remote
|
|
fn_default_config_remote
|
|
|
fn_set_config_vars
|
|
fn_set_config_vars
|
|
|
fn_list_config_locations
|
|
fn_list_config_locations
|
|
|
elif [ "${shortname}" == "csgo" ]; then
|
|
elif [ "${shortname}" == "csgo" ]; then
|
|
|
array_configs+=(server.cfg)
|
|
array_configs+=(server.cfg)
|
|
|
- fn_fetch_default_config
|
|
|
|
|
fn_default_config_remote
|
|
fn_default_config_remote
|
|
|
fn_set_config_vars
|
|
fn_set_config_vars
|
|
|
fn_list_config_locations
|
|
fn_list_config_locations
|
|
|
elif [ "${shortname}" == "css" ]; then
|
|
elif [ "${shortname}" == "css" ]; then
|
|
|
array_configs+=(server.cfg)
|
|
array_configs+=(server.cfg)
|
|
|
- fn_fetch_default_config
|
|
|
|
|
fn_default_config_remote
|
|
fn_default_config_remote
|
|
|
fn_set_config_vars
|
|
fn_set_config_vars
|
|
|
fn_list_config_locations
|
|
fn_list_config_locations
|
|
|
elif [ "${shortname}" == "ct" ]; then
|
|
elif [ "${shortname}" == "ct" ]; then
|
|
|
array_configs+=(ServerSetting.ini)
|
|
array_configs+=(ServerSetting.ini)
|
|
|
- fn_fetch_default_config
|
|
|
|
|
fn_default_config_remote
|
|
fn_default_config_remote
|
|
|
fn_set_config_vars
|
|
fn_set_config_vars
|
|
|
fn_list_config_locations
|
|
fn_list_config_locations
|
|
|
elif [ "${shortname}" == "dayz" ]; then
|
|
elif [ "${shortname}" == "dayz" ]; then
|
|
|
- fn_check_cfgdir
|
|
|
|
|
array_configs+=(server.cfg)
|
|
array_configs+=(server.cfg)
|
|
|
- fn_fetch_default_config
|
|
|
|
|
fn_default_config_remote
|
|
fn_default_config_remote
|
|
|
fn_set_config_vars
|
|
fn_set_config_vars
|
|
|
fn_list_config_locations
|
|
fn_list_config_locations
|
|
|
elif [ "${shortname}" == "dod" ]; then
|
|
elif [ "${shortname}" == "dod" ]; then
|
|
|
array_configs+=(server.cfg)
|
|
array_configs+=(server.cfg)
|
|
|
- fn_fetch_default_config
|
|
|
|
|
fn_default_config_remote
|
|
fn_default_config_remote
|
|
|
fn_set_config_vars
|
|
fn_set_config_vars
|
|
|
fn_list_config_locations
|
|
fn_list_config_locations
|
|
|
elif [ "${shortname}" == "dodr" ]; then
|
|
elif [ "${shortname}" == "dodr" ]; then
|
|
|
array_configs+=(Game.ini)
|
|
array_configs+=(Game.ini)
|
|
|
- fn_fetch_default_config
|
|
|
|
|
fn_default_config_remote
|
|
fn_default_config_remote
|
|
|
fn_list_config_locations
|
|
fn_list_config_locations
|
|
|
elif [ "${shortname}" == "dods" ]; then
|
|
elif [ "${shortname}" == "dods" ]; then
|
|
|
array_configs+=(server.cfg)
|
|
array_configs+=(server.cfg)
|
|
|
- fn_fetch_default_config
|
|
|
|
|
fn_default_config_remote
|
|
fn_default_config_remote
|
|
|
fn_set_config_vars
|
|
fn_set_config_vars
|
|
|
fn_list_config_locations
|
|
fn_list_config_locations
|
|
|
elif [ "${shortname}" == "doi" ]; then
|
|
elif [ "${shortname}" == "doi" ]; then
|
|
|
array_configs+=(server.cfg)
|
|
array_configs+=(server.cfg)
|
|
|
- fn_fetch_default_config
|
|
|
|
|
fn_default_config_remote
|
|
fn_default_config_remote
|
|
|
fn_set_config_vars
|
|
fn_set_config_vars
|
|
|
fn_list_config_locations
|
|
fn_list_config_locations
|
|
|
elif [ "${shortname}" == "dmc" ]; then
|
|
elif [ "${shortname}" == "dmc" ]; then
|
|
|
array_configs+=(server.cfg)
|
|
array_configs+=(server.cfg)
|
|
|
- fn_fetch_default_config
|
|
|
|
|
fn_default_config_remote
|
|
fn_default_config_remote
|
|
|
fn_set_config_vars
|
|
fn_set_config_vars
|
|
|
fn_list_config_locations
|
|
fn_list_config_locations
|
|
|
elif [ "${shortname}" == "dst" ]; then
|
|
elif [ "${shortname}" == "dst" ]; then
|
|
|
- fn_check_cfgdir
|
|
|
|
|
array_configs+=(cluster.ini server.ini)
|
|
array_configs+=(cluster.ini server.ini)
|
|
|
- fn_fetch_default_config
|
|
|
|
|
fn_default_config_remote
|
|
fn_default_config_remote
|
|
|
fn_set_dst_config_vars
|
|
fn_set_dst_config_vars
|
|
|
fn_list_config_locations
|
|
fn_list_config_locations
|
|
|
elif [ "${shortname}" == "dab" ]; then
|
|
elif [ "${shortname}" == "dab" ]; then
|
|
|
array_configs+=(server.cfg)
|
|
array_configs+=(server.cfg)
|
|
|
- fn_fetch_default_config
|
|
|
|
|
fn_default_config_remote
|
|
fn_default_config_remote
|
|
|
fn_set_config_vars
|
|
fn_set_config_vars
|
|
|
fn_list_config_locations
|
|
fn_list_config_locations
|
|
|
elif [ "${shortname}" == "dys" ]; then
|
|
elif [ "${shortname}" == "dys" ]; then
|
|
|
array_configs+=(server.cfg)
|
|
array_configs+=(server.cfg)
|
|
|
- fn_fetch_default_config
|
|
|
|
|
fn_default_config_remote
|
|
fn_default_config_remote
|
|
|
fn_set_config_vars
|
|
fn_set_config_vars
|
|
|
fn_list_config_locations
|
|
fn_list_config_locations
|
|
|
elif [ "${shortname}" == "eco" ]; then
|
|
elif [ "${shortname}" == "eco" ]; then
|
|
|
array_configs+=(Network.eco)
|
|
array_configs+=(Network.eco)
|
|
|
- fn_fetch_default_config
|
|
|
|
|
fn_default_config_remote
|
|
fn_default_config_remote
|
|
|
fn_set_config_vars
|
|
fn_set_config_vars
|
|
|
fn_list_config_locations
|
|
fn_list_config_locations
|
|
@@ -443,44 +448,36 @@ elif [ "${shortname}" == "em" ]; then
|
|
|
fn_list_config_locations
|
|
fn_list_config_locations
|
|
|
elif [ "${shortname}" == "etl" ]; then
|
|
elif [ "${shortname}" == "etl" ]; then
|
|
|
array_configs+=(server.cfg)
|
|
array_configs+=(server.cfg)
|
|
|
- fn_fetch_default_config
|
|
|
|
|
fn_default_config_remote
|
|
fn_default_config_remote
|
|
|
fn_set_config_vars
|
|
fn_set_config_vars
|
|
|
fn_list_config_locations
|
|
fn_list_config_locations
|
|
|
elif [ "${shortname}" == "ets2" ]; then
|
|
elif [ "${shortname}" == "ets2" ]; then
|
|
|
- fn_check_cfgdir
|
|
|
|
|
array_configs+=(server_config.sii)
|
|
array_configs+=(server_config.sii)
|
|
|
- fn_fetch_default_config
|
|
|
|
|
fn_default_config_remote
|
|
fn_default_config_remote
|
|
|
fn_set_config_vars
|
|
fn_set_config_vars
|
|
|
fn_list_config_locations
|
|
fn_list_config_locations
|
|
|
elif [ "${shortname}" == "fctr" ]; then
|
|
elif [ "${shortname}" == "fctr" ]; then
|
|
|
array_configs+=(server-settings.json)
|
|
array_configs+=(server-settings.json)
|
|
|
- fn_fetch_default_config
|
|
|
|
|
fn_default_config_remote
|
|
fn_default_config_remote
|
|
|
fn_set_config_vars
|
|
fn_set_config_vars
|
|
|
fn_list_config_locations
|
|
fn_list_config_locations
|
|
|
elif [ "${shortname}" == "fof" ]; then
|
|
elif [ "${shortname}" == "fof" ]; then
|
|
|
array_configs+=(server.cfg)
|
|
array_configs+=(server.cfg)
|
|
|
- fn_fetch_default_config
|
|
|
|
|
fn_default_config_remote
|
|
fn_default_config_remote
|
|
|
fn_set_config_vars
|
|
fn_set_config_vars
|
|
|
fn_list_config_locations
|
|
fn_list_config_locations
|
|
|
elif [ "${shortname}" == "gmod" ]; then
|
|
elif [ "${shortname}" == "gmod" ]; then
|
|
|
array_configs+=(server.cfg)
|
|
array_configs+=(server.cfg)
|
|
|
- fn_fetch_default_config
|
|
|
|
|
fn_default_config_remote
|
|
fn_default_config_remote
|
|
|
fn_set_config_vars
|
|
fn_set_config_vars
|
|
|
fn_list_config_locations
|
|
fn_list_config_locations
|
|
|
elif [ "${shortname}" == "hldm" ]; then
|
|
elif [ "${shortname}" == "hldm" ]; then
|
|
|
array_configs+=(server.cfg)
|
|
array_configs+=(server.cfg)
|
|
|
- fn_fetch_default_config
|
|
|
|
|
fn_default_config_remote
|
|
fn_default_config_remote
|
|
|
fn_set_config_vars
|
|
fn_set_config_vars
|
|
|
fn_list_config_locations
|
|
fn_list_config_locations
|
|
|
elif [ "${shortname}" == "hldms" ]; then
|
|
elif [ "${shortname}" == "hldms" ]; then
|
|
|
array_configs+=(server.cfg)
|
|
array_configs+=(server.cfg)
|
|
|
- fn_fetch_default_config
|
|
|
|
|
fn_default_config_remote
|
|
fn_default_config_remote
|
|
|
fn_set_config_vars
|
|
fn_set_config_vars
|
|
|
fn_list_config_locations
|
|
fn_list_config_locations
|
|
@@ -492,13 +489,11 @@ elif [ "${shortname}" == "ohd" ]; then
|
|
|
fn_list_config_locations
|
|
fn_list_config_locations
|
|
|
elif [ "${shortname}" == "opfor" ]; then
|
|
elif [ "${shortname}" == "opfor" ]; then
|
|
|
array_configs+=(server.cfg)
|
|
array_configs+=(server.cfg)
|
|
|
- fn_fetch_default_config
|
|
|
|
|
fn_default_config_remote
|
|
fn_default_config_remote
|
|
|
fn_set_config_vars
|
|
fn_set_config_vars
|
|
|
fn_list_config_locations
|
|
fn_list_config_locations
|
|
|
elif [ "${shortname}" == "hl2dm" ]; then
|
|
elif [ "${shortname}" == "hl2dm" ]; then
|
|
|
array_configs+=(server.cfg)
|
|
array_configs+=(server.cfg)
|
|
|
- fn_fetch_default_config
|
|
|
|
|
fn_default_config_remote
|
|
fn_default_config_remote
|
|
|
fn_set_config_vars
|
|
fn_set_config_vars
|
|
|
fn_list_config_locations
|
|
fn_list_config_locations
|
|
@@ -507,104 +502,84 @@ elif [ "${shortname}" == "hz" ]; then
|
|
|
:
|
|
:
|
|
|
elif [ "${shortname}" == "ins" ]; then
|
|
elif [ "${shortname}" == "ins" ]; then
|
|
|
array_configs+=(server.cfg)
|
|
array_configs+=(server.cfg)
|
|
|
- fn_fetch_default_config
|
|
|
|
|
fn_default_config_remote
|
|
fn_default_config_remote
|
|
|
fn_set_config_vars
|
|
fn_set_config_vars
|
|
|
fn_list_config_locations
|
|
fn_list_config_locations
|
|
|
elif [ "${shortname}" == "ios" ]; then
|
|
elif [ "${shortname}" == "ios" ]; then
|
|
|
array_configs+=(server.cfg)
|
|
array_configs+=(server.cfg)
|
|
|
- fn_fetch_default_config
|
|
|
|
|
fn_default_config_remote
|
|
fn_default_config_remote
|
|
|
fn_set_config_vars
|
|
fn_set_config_vars
|
|
|
fn_list_config_locations
|
|
fn_list_config_locations
|
|
|
elif [ "${shortname}" == "jc2" ]; then
|
|
elif [ "${shortname}" == "jc2" ]; then
|
|
|
array_configs+=(config.lua)
|
|
array_configs+=(config.lua)
|
|
|
- fn_fetch_default_config
|
|
|
|
|
fn_default_config_remote
|
|
fn_default_config_remote
|
|
|
fn_set_config_vars
|
|
fn_set_config_vars
|
|
|
fn_list_config_locations
|
|
fn_list_config_locations
|
|
|
elif [ "${shortname}" == "jc3" ]; then
|
|
elif [ "${shortname}" == "jc3" ]; then
|
|
|
array_configs+=(config.json)
|
|
array_configs+=(config.json)
|
|
|
- fn_fetch_default_config
|
|
|
|
|
fn_default_config_remote
|
|
fn_default_config_remote
|
|
|
fn_set_config_vars
|
|
fn_set_config_vars
|
|
|
fn_list_config_locations
|
|
fn_list_config_locations
|
|
|
elif [ "${shortname}" == "kf" ]; then
|
|
elif [ "${shortname}" == "kf" ]; then
|
|
|
array_configs+=(Default.ini)
|
|
array_configs+=(Default.ini)
|
|
|
- fn_fetch_default_config
|
|
|
|
|
fn_default_config_remote
|
|
fn_default_config_remote
|
|
|
fn_set_config_vars
|
|
fn_set_config_vars
|
|
|
fn_list_config_locations
|
|
fn_list_config_locations
|
|
|
elif [ "${shortname}" == "l4d" ]; then
|
|
elif [ "${shortname}" == "l4d" ]; then
|
|
|
array_configs+=(server.cfg)
|
|
array_configs+=(server.cfg)
|
|
|
- fn_fetch_default_config
|
|
|
|
|
fn_default_config_remote
|
|
fn_default_config_remote
|
|
|
fn_set_config_vars
|
|
fn_set_config_vars
|
|
|
fn_list_config_locations
|
|
fn_list_config_locations
|
|
|
elif [ "${shortname}" == "l4d2" ]; then
|
|
elif [ "${shortname}" == "l4d2" ]; then
|
|
|
array_configs+=(server.cfg)
|
|
array_configs+=(server.cfg)
|
|
|
- fn_fetch_default_config
|
|
|
|
|
fn_default_config_remote
|
|
fn_default_config_remote
|
|
|
fn_set_config_vars
|
|
fn_set_config_vars
|
|
|
fn_list_config_locations
|
|
fn_list_config_locations
|
|
|
elif [ "${shortname}" == "mc" ] || [ "${shortname}" == "pmc" ]; then
|
|
elif [ "${shortname}" == "mc" ] || [ "${shortname}" == "pmc" ]; then
|
|
|
array_configs+=(server.properties)
|
|
array_configs+=(server.properties)
|
|
|
- fn_fetch_default_config
|
|
|
|
|
fn_default_config_remote
|
|
fn_default_config_remote
|
|
|
fn_set_config_vars
|
|
fn_set_config_vars
|
|
|
fn_list_config_locations
|
|
fn_list_config_locations
|
|
|
elif [ "${shortname}" == "mcb" ]; then
|
|
elif [ "${shortname}" == "mcb" ]; then
|
|
|
array_configs+=(server.properties)
|
|
array_configs+=(server.properties)
|
|
|
- fn_fetch_default_config
|
|
|
|
|
fn_default_config_remote
|
|
fn_default_config_remote
|
|
|
fn_set_config_vars
|
|
fn_set_config_vars
|
|
|
fn_list_config_locations
|
|
fn_list_config_locations
|
|
|
elif [ "${shortname}" == "mohaa" ]; then
|
|
elif [ "${shortname}" == "mohaa" ]; then
|
|
|
array_configs+=(server.cfg)
|
|
array_configs+=(server.cfg)
|
|
|
- fn_fetch_default_config
|
|
|
|
|
fn_default_config_remote
|
|
fn_default_config_remote
|
|
|
fn_set_config_vars
|
|
fn_set_config_vars
|
|
|
fn_list_config_locations
|
|
fn_list_config_locations
|
|
|
elif [ "${shortname}" == "mh" ]; then
|
|
elif [ "${shortname}" == "mh" ]; then
|
|
|
- fn_check_cfgdir
|
|
|
|
|
array_configs+=(Game.ini)
|
|
array_configs+=(Game.ini)
|
|
|
- fn_fetch_default_config
|
|
|
|
|
fn_default_config_remote
|
|
fn_default_config_remote
|
|
|
fn_set_config_vars
|
|
fn_set_config_vars
|
|
|
fn_list_config_locations
|
|
fn_list_config_locations
|
|
|
elif [ "${shortname}" == "ns" ]; then
|
|
elif [ "${shortname}" == "ns" ]; then
|
|
|
array_configs+=(server.cfg)
|
|
array_configs+=(server.cfg)
|
|
|
- fn_fetch_default_config
|
|
|
|
|
fn_default_config_remote
|
|
fn_default_config_remote
|
|
|
fn_set_config_vars
|
|
fn_set_config_vars
|
|
|
fn_list_config_locations
|
|
fn_list_config_locations
|
|
|
elif [ "${shortname}" == "nmrih" ]; then
|
|
elif [ "${shortname}" == "nmrih" ]; then
|
|
|
array_configs+=(server.cfg)
|
|
array_configs+=(server.cfg)
|
|
|
- fn_fetch_default_config
|
|
|
|
|
fn_default_config_remote
|
|
fn_default_config_remote
|
|
|
fn_set_config_vars
|
|
fn_set_config_vars
|
|
|
fn_list_config_locations
|
|
fn_list_config_locations
|
|
|
elif [ "${shortname}" == "nd" ]; then
|
|
elif [ "${shortname}" == "nd" ]; then
|
|
|
array_configs+=(server.cfg)
|
|
array_configs+=(server.cfg)
|
|
|
- fn_fetch_default_config
|
|
|
|
|
fn_default_config_remote
|
|
fn_default_config_remote
|
|
|
fn_set_config_vars
|
|
fn_set_config_vars
|
|
|
fn_list_config_locations
|
|
fn_list_config_locations
|
|
|
elif [ "${shortname}" == "mta" ]; then
|
|
elif [ "${shortname}" == "mta" ]; then
|
|
|
- fn_check_cfgdir
|
|
|
|
|
array_configs+=(acl.xml mtaserver.conf vehiclecolors.conf)
|
|
array_configs+=(acl.xml mtaserver.conf vehiclecolors.conf)
|
|
|
- fn_fetch_default_config
|
|
|
|
|
fn_default_config_remote
|
|
fn_default_config_remote
|
|
|
fn_list_config_locations
|
|
fn_list_config_locations
|
|
|
elif [ "${shortname}" == "pvr" ]; then
|
|
elif [ "${shortname}" == "pvr" ]; then
|
|
|
- fn_check_cfgdir
|
|
|
|
|
array_configs+=(Game.ini)
|
|
array_configs+=(Game.ini)
|
|
|
- fn_fetch_default_config
|
|
|
|
|
fn_default_config_remote
|
|
fn_default_config_remote
|
|
|
fn_set_config_vars
|
|
fn_set_config_vars
|
|
|
elif [ "${shortname}" == "pvkii" ]; then
|
|
elif [ "${shortname}" == "pvkii" ]; then
|
|
|
array_configs+=(server.cfg)
|
|
array_configs+=(server.cfg)
|
|
|
- fn_fetch_default_config
|
|
|
|
|
fn_default_config_remote
|
|
fn_default_config_remote
|
|
|
fn_set_config_vars
|
|
fn_set_config_vars
|
|
|
fn_list_config_locations
|
|
fn_list_config_locations
|
|
@@ -615,22 +590,17 @@ elif [ "${shortname}" == "pw" ]; then
|
|
|
fn_set_config_vars
|
|
fn_set_config_vars
|
|
|
fn_list_config_locations
|
|
fn_list_config_locations
|
|
|
elif [ "${shortname}" == "pz" ]; then
|
|
elif [ "${shortname}" == "pz" ]; then
|
|
|
- fn_check_cfgdir
|
|
|
|
|
array_configs+=(server.ini)
|
|
array_configs+=(server.ini)
|
|
|
- fn_fetch_default_config
|
|
|
|
|
fn_default_config_remote
|
|
fn_default_config_remote
|
|
|
fn_set_config_vars
|
|
fn_set_config_vars
|
|
|
fn_list_config_locations
|
|
fn_list_config_locations
|
|
|
elif [ "${shortname}" == "nec" ]; then
|
|
elif [ "${shortname}" == "nec" ]; then
|
|
|
- fn_check_cfgdir
|
|
|
|
|
array_configs+=(server.cfg)
|
|
array_configs+=(server.cfg)
|
|
|
- fn_fetch_default_config
|
|
|
|
|
fn_default_config_remote
|
|
fn_default_config_remote
|
|
|
fn_set_config_vars
|
|
fn_set_config_vars
|
|
|
fn_list_config_locations
|
|
fn_list_config_locations
|
|
|
elif [ "${shortname}" == "pc" ]; then
|
|
elif [ "${shortname}" == "pc" ]; then
|
|
|
array_configs+=(server.cfg)
|
|
array_configs+=(server.cfg)
|
|
|
- fn_fetch_default_config
|
|
|
|
|
fn_default_config_remote
|
|
fn_default_config_remote
|
|
|
fn_set_config_vars
|
|
fn_set_config_vars
|
|
|
fn_list_config_locations
|
|
fn_list_config_locations
|
|
@@ -639,13 +609,12 @@ elif [ "${shortname}" == "pc2" ]; then
|
|
|
fn_list_config_locations
|
|
fn_list_config_locations
|
|
|
elif [ "${shortname}" == "q2" ]; then
|
|
elif [ "${shortname}" == "q2" ]; then
|
|
|
array_configs+=(server.cfg)
|
|
array_configs+=(server.cfg)
|
|
|
- fn_fetch_default_config
|
|
|
|
|
fn_default_config_remote
|
|
fn_default_config_remote
|
|
|
fn_set_config_vars
|
|
fn_set_config_vars
|
|
|
fn_list_config_locations
|
|
fn_list_config_locations
|
|
|
elif [ "${shortname}" == "q3" ]; then
|
|
elif [ "${shortname}" == "q3" ]; then
|
|
|
array_configs+=(server.cfg)
|
|
array_configs+=(server.cfg)
|
|
|
- fn_fetch_default_configs
|
|
|
|
|
|
|
+ fn_fetch_default_config
|
|
|
fn_default_config_remote
|
|
fn_default_config_remote
|
|
|
fn_set_config_vars
|
|
fn_set_config_vars
|
|
|
fn_list_config_locations
|
|
fn_list_config_locations
|
|
@@ -657,159 +626,133 @@ elif [ "${shortname}" == "q4" ]; then
|
|
|
fn_list_config_locations
|
|
fn_list_config_locations
|
|
|
elif [ "${shortname}" == "ql" ]; then
|
|
elif [ "${shortname}" == "ql" ]; then
|
|
|
array_configs+=(server.cfg)
|
|
array_configs+=(server.cfg)
|
|
|
- fn_fetch_default_config
|
|
|
|
|
fn_default_config_remote
|
|
fn_default_config_remote
|
|
|
fn_set_config_vars
|
|
fn_set_config_vars
|
|
|
fn_list_config_locations
|
|
fn_list_config_locations
|
|
|
elif [ "${shortname}" == "jk2" ]; then
|
|
elif [ "${shortname}" == "jk2" ]; then
|
|
|
array_configs+=(server.cfg)
|
|
array_configs+=(server.cfg)
|
|
|
- fn_fetch_default_config
|
|
|
|
|
fn_default_config_remote
|
|
fn_default_config_remote
|
|
|
fn_set_config_vars
|
|
fn_set_config_vars
|
|
|
elif [ "${shortname}" == "qw" ]; then
|
|
elif [ "${shortname}" == "qw" ]; then
|
|
|
array_configs+=(server.cfg)
|
|
array_configs+=(server.cfg)
|
|
|
- fn_fetch_default_config
|
|
|
|
|
fn_default_config_remote
|
|
fn_default_config_remote
|
|
|
fn_set_config_vars
|
|
fn_set_config_vars
|
|
|
fn_list_config_locations
|
|
fn_list_config_locations
|
|
|
elif [ "${shortname}" == "ricochet" ]; then
|
|
elif [ "${shortname}" == "ricochet" ]; then
|
|
|
array_configs+=(server.cfg)
|
|
array_configs+=(server.cfg)
|
|
|
- fn_fetch_default_config
|
|
|
|
|
fn_default_config_remote
|
|
fn_default_config_remote
|
|
|
fn_set_config_vars
|
|
fn_set_config_vars
|
|
|
fn_list_config_locations
|
|
fn_list_config_locations
|
|
|
elif [ "${shortname}" == "rtcw" ]; then
|
|
elif [ "${shortname}" == "rtcw" ]; then
|
|
|
array_configs+=(server.cfg)
|
|
array_configs+=(server.cfg)
|
|
|
- fn_fetch_default_config
|
|
|
|
|
fn_default_config_remote
|
|
fn_default_config_remote
|
|
|
fn_set_config_vars
|
|
fn_set_config_vars
|
|
|
fn_list_config_locations
|
|
fn_list_config_locations
|
|
|
elif [ "${shortname}" == "rust" ]; then
|
|
elif [ "${shortname}" == "rust" ]; then
|
|
|
- fn_check_cfgdir
|
|
|
|
|
array_configs+=(server.cfg)
|
|
array_configs+=(server.cfg)
|
|
|
- fn_fetch_default_config
|
|
|
|
|
fn_default_config_remote
|
|
fn_default_config_remote
|
|
|
fn_list_config_locations
|
|
fn_list_config_locations
|
|
|
elif [ "${shortname}" == "scpsl" ] || [ "${shortname}" == "scpslsm" ]; then
|
|
elif [ "${shortname}" == "scpsl" ] || [ "${shortname}" == "scpslsm" ]; then
|
|
|
array_configs+=(config_gameplay.txt config_localadmin.txt)
|
|
array_configs+=(config_gameplay.txt config_localadmin.txt)
|
|
|
- fn_fetch_default_config
|
|
|
|
|
fn_default_config_remote
|
|
fn_default_config_remote
|
|
|
fn_set_config_vars
|
|
fn_set_config_vars
|
|
|
fn_list_config_locations
|
|
fn_list_config_locations
|
|
|
elif [ "${shortname}" == "sf" ]; then
|
|
elif [ "${shortname}" == "sf" ]; then
|
|
|
array_configs+=(GameUserSettings.ini)
|
|
array_configs+=(GameUserSettings.ini)
|
|
|
- fn_fetch_default_config
|
|
|
|
|
fn_default_config_remote
|
|
fn_default_config_remote
|
|
|
fn_set_config_vars
|
|
fn_set_config_vars
|
|
|
fn_list_config_locations
|
|
fn_list_config_locations
|
|
|
-elif [ "${shortname}" == "sm" ]; then
|
|
|
|
|
- fn_default_config_local
|
|
|
|
|
- fn_list_config_locations
|
|
|
|
|
elif [ "${shortname}" == "sol" ]; then
|
|
elif [ "${shortname}" == "sol" ]; then
|
|
|
array_configs+=(soldat.ini)
|
|
array_configs+=(soldat.ini)
|
|
|
- fn_fetch_default_config
|
|
|
|
|
fn_default_config_remote
|
|
fn_default_config_remote
|
|
|
fn_set_config_vars
|
|
fn_set_config_vars
|
|
|
fn_list_config_locations
|
|
fn_list_config_locations
|
|
|
elif [ "${shortname}" == "sof2" ]; then
|
|
elif [ "${shortname}" == "sof2" ]; then
|
|
|
array_configs+=(server.cfg mapcycle.txt)
|
|
array_configs+=(server.cfg mapcycle.txt)
|
|
|
- fn_fetch_default_config
|
|
|
|
|
fn_default_config_remote
|
|
fn_default_config_remote
|
|
|
fn_set_config_vars
|
|
fn_set_config_vars
|
|
|
fn_list_config_locations
|
|
fn_list_config_locations
|
|
|
elif [ "${shortname}" == "sfc" ]; then
|
|
elif [ "${shortname}" == "sfc" ]; then
|
|
|
array_configs+=(server.cfg)
|
|
array_configs+=(server.cfg)
|
|
|
- fn_fetch_default_config
|
|
|
|
|
fn_default_config_remote
|
|
fn_default_config_remote
|
|
|
fn_set_config_vars
|
|
fn_set_config_vars
|
|
|
fn_list_config_locations
|
|
fn_list_config_locations
|
|
|
elif [ "${shortname}" == "squad" ]; then
|
|
elif [ "${shortname}" == "squad" ]; then
|
|
|
array_configs+=(Admins.cfg Bans.cfg License.cfg Server.cfg Rcon.cfg)
|
|
array_configs+=(Admins.cfg Bans.cfg License.cfg Server.cfg Rcon.cfg)
|
|
|
- fn_fetch_default_config
|
|
|
|
|
fn_default_config_remote
|
|
fn_default_config_remote
|
|
|
fn_set_config_vars
|
|
fn_set_config_vars
|
|
|
fn_list_config_locations
|
|
fn_list_config_locations
|
|
|
elif [ "${shortname}" == "sb" ]; then
|
|
elif [ "${shortname}" == "sb" ]; then
|
|
|
array_configs+=(starbound_server.config)
|
|
array_configs+=(starbound_server.config)
|
|
|
- fn_fetch_default_config
|
|
|
|
|
|
|
+ fn_default_config_remote
|
|
|
|
|
+ fn_set_config_vars
|
|
|
|
|
+ fn_list_config_locations
|
|
|
|
|
+elif [ "${shortname}" == "st" ]; then
|
|
|
|
|
+ array_configs+=(setting.xml)
|
|
|
fn_default_config_remote
|
|
fn_default_config_remote
|
|
|
fn_set_config_vars
|
|
fn_set_config_vars
|
|
|
fn_list_config_locations
|
|
fn_list_config_locations
|
|
|
elif [ "${shortname}" == "stn" ]; then
|
|
elif [ "${shortname}" == "stn" ]; then
|
|
|
array_configs+=(ServerConfig.txt ServerUsers.txt TpPresets.json UserPermissions.json)
|
|
array_configs+=(ServerConfig.txt ServerUsers.txt TpPresets.json UserPermissions.json)
|
|
|
- fn_fetch_default_config
|
|
|
|
|
fn_default_config_remote
|
|
fn_default_config_remote
|
|
|
fn_set_config_vars
|
|
fn_set_config_vars
|
|
|
fn_list_config_locations
|
|
fn_list_config_locations
|
|
|
elif [ "${shortname}" == "sven" ]; then
|
|
elif [ "${shortname}" == "sven" ]; then
|
|
|
array_configs+=(server.cfg)
|
|
array_configs+=(server.cfg)
|
|
|
- fn_fetch_default_config
|
|
|
|
|
fn_default_config_remote
|
|
fn_default_config_remote
|
|
|
fn_set_config_vars
|
|
fn_set_config_vars
|
|
|
fn_list_config_locations
|
|
fn_list_config_locations
|
|
|
elif [ "${shortname}" == "tf2" ]; then
|
|
elif [ "${shortname}" == "tf2" ]; then
|
|
|
array_configs+=(server.cfg)
|
|
array_configs+=(server.cfg)
|
|
|
- fn_fetch_default_config
|
|
|
|
|
fn_default_config_remote
|
|
fn_default_config_remote
|
|
|
fn_set_config_vars
|
|
fn_set_config_vars
|
|
|
fn_list_config_locations
|
|
fn_list_config_locations
|
|
|
elif [ "${shortname}" == "tfc" ]; then
|
|
elif [ "${shortname}" == "tfc" ]; then
|
|
|
array_configs+=(server.cfg)
|
|
array_configs+=(server.cfg)
|
|
|
- fn_fetch_default_config
|
|
|
|
|
fn_default_config_remote
|
|
fn_default_config_remote
|
|
|
fn_set_config_vars
|
|
fn_set_config_vars
|
|
|
fn_list_config_locations
|
|
fn_list_config_locations
|
|
|
elif [ "${shortname}" == "ti" ]; then
|
|
elif [ "${shortname}" == "ti" ]; then
|
|
|
array_configs+=(Game.ini Engine.ini)
|
|
array_configs+=(Game.ini Engine.ini)
|
|
|
- fn_fetch_default_config
|
|
|
|
|
fn_default_config_remote
|
|
fn_default_config_remote
|
|
|
fn_set_config_vars
|
|
fn_set_config_vars
|
|
|
fn_list_config_locations
|
|
fn_list_config_locations
|
|
|
elif [ "${shortname}" == "ts" ]; then
|
|
elif [ "${shortname}" == "ts" ]; then
|
|
|
array_configs+=(server.cfg)
|
|
array_configs+=(server.cfg)
|
|
|
- fn_fetch_default_config
|
|
|
|
|
fn_default_config_remote
|
|
fn_default_config_remote
|
|
|
fn_set_config_vars
|
|
fn_set_config_vars
|
|
|
fn_list_config_locations
|
|
fn_list_config_locations
|
|
|
elif [ "${shortname}" == "ts3" ]; then
|
|
elif [ "${shortname}" == "ts3" ]; then
|
|
|
array_configs+=(ts3server.ini)
|
|
array_configs+=(ts3server.ini)
|
|
|
- fn_fetch_default_config
|
|
|
|
|
fn_default_config_remote
|
|
fn_default_config_remote
|
|
|
fn_list_config_locations
|
|
fn_list_config_locations
|
|
|
elif [ "${shortname}" == "tw" ]; then
|
|
elif [ "${shortname}" == "tw" ]; then
|
|
|
array_configs+=(server.cfg ctf.cfg dm.cfg duel.cfg tdm.cfg)
|
|
array_configs+=(server.cfg ctf.cfg dm.cfg duel.cfg tdm.cfg)
|
|
|
- fn_fetch_default_config
|
|
|
|
|
fn_default_config_remote
|
|
fn_default_config_remote
|
|
|
fn_set_config_vars
|
|
fn_set_config_vars
|
|
|
fn_list_config_locations
|
|
fn_list_config_locations
|
|
|
elif [ "${shortname}" == "terraria" ]; then
|
|
elif [ "${shortname}" == "terraria" ]; then
|
|
|
array_configs+=(serverconfig.txt)
|
|
array_configs+=(serverconfig.txt)
|
|
|
- fn_fetch_default_config
|
|
|
|
|
fn_default_config_remote
|
|
fn_default_config_remote
|
|
|
fn_set_config_vars
|
|
fn_set_config_vars
|
|
|
fn_list_config_locations
|
|
fn_list_config_locations
|
|
|
elif [ "${shortname}" == "tu" ]; then
|
|
elif [ "${shortname}" == "tu" ]; then
|
|
|
- fn_check_cfgdir
|
|
|
|
|
array_configs+=(TowerServer.ini)
|
|
array_configs+=(TowerServer.ini)
|
|
|
- fn_fetch_default_config
|
|
|
|
|
fn_default_config_remote
|
|
fn_default_config_remote
|
|
|
fn_set_config_vars
|
|
fn_set_config_vars
|
|
|
fn_list_config_locations
|
|
fn_list_config_locations
|
|
|
elif [ "${shortname}" == "ut" ]; then
|
|
elif [ "${shortname}" == "ut" ]; then
|
|
|
array_configs+=(Game.ini Engine.ini)
|
|
array_configs+=(Game.ini Engine.ini)
|
|
|
- fn_fetch_default_config
|
|
|
|
|
fn_default_config_remote
|
|
fn_default_config_remote
|
|
|
fn_set_config_vars
|
|
fn_set_config_vars
|
|
|
fn_list_config_locations
|
|
fn_list_config_locations
|
|
|
elif [ "${shortname}" == "ut2k4" ]; then
|
|
elif [ "${shortname}" == "ut2k4" ]; then
|
|
|
array_configs+=(UT2004.ini)
|
|
array_configs+=(UT2004.ini)
|
|
|
- fn_fetch_default_config
|
|
|
|
|
fn_default_config_remote
|
|
fn_default_config_remote
|
|
|
fn_set_config_vars
|
|
fn_set_config_vars
|
|
|
fn_list_config_locations
|
|
fn_list_config_locations
|
|
|
elif [ "${shortname}" == "ut99" ]; then
|
|
elif [ "${shortname}" == "ut99" ]; then
|
|
|
array_configs+=(Default.ini)
|
|
array_configs+=(Default.ini)
|
|
|
- fn_fetch_default_config
|
|
|
|
|
fn_default_config_remote
|
|
fn_default_config_remote
|
|
|
fn_set_config_vars
|
|
fn_set_config_vars
|
|
|
fn_list_config_locations
|
|
fn_list_config_locations
|
|
@@ -821,25 +764,21 @@ elif [ "${shortname}" == "vints" ]; then
|
|
|
:
|
|
:
|
|
|
elif [ "${shortname}" == "vs" ]; then
|
|
elif [ "${shortname}" == "vs" ]; then
|
|
|
array_configs+=(server.cfg)
|
|
array_configs+=(server.cfg)
|
|
|
- fn_fetch_default_config
|
|
|
|
|
fn_default_config_remote
|
|
fn_default_config_remote
|
|
|
fn_set_config_vars
|
|
fn_set_config_vars
|
|
|
fn_list_config_locations
|
|
fn_list_config_locations
|
|
|
elif [ "${shortname}" == "wet" ]; then
|
|
elif [ "${shortname}" == "wet" ]; then
|
|
|
array_configs+=(server.cfg)
|
|
array_configs+=(server.cfg)
|
|
|
- fn_fetch_default_config
|
|
|
|
|
fn_default_config_remote
|
|
fn_default_config_remote
|
|
|
fn_set_config_vars
|
|
fn_set_config_vars
|
|
|
fn_list_config_locations
|
|
fn_list_config_locations
|
|
|
elif [ "${shortname}" == "wf" ]; then
|
|
elif [ "${shortname}" == "wf" ]; then
|
|
|
array_configs+=(server.cfg)
|
|
array_configs+=(server.cfg)
|
|
|
- fn_fetch_default_config
|
|
|
|
|
fn_default_config_remote
|
|
fn_default_config_remote
|
|
|
fn_set_config_vars
|
|
fn_set_config_vars
|
|
|
fn_list_config_locations
|
|
fn_list_config_locations
|
|
|
elif [ "${shortname}" == "wmc" ]; then
|
|
elif [ "${shortname}" == "wmc" ]; then
|
|
|
array_configs+=(config.yml)
|
|
array_configs+=(config.yml)
|
|
|
- fn_fetch_default_config
|
|
|
|
|
fn_default_config_remote
|
|
fn_default_config_remote
|
|
|
fn_set_config_vars
|
|
fn_set_config_vars
|
|
|
fn_list_config_locations
|
|
fn_list_config_locations
|
|
@@ -851,19 +790,16 @@ elif [ "${shortname}" == "xnt" ]; then
|
|
|
fn_list_config_locations
|
|
fn_list_config_locations
|
|
|
elif [ "${shortname}" == "wurm" ]; then
|
|
elif [ "${shortname}" == "wurm" ]; then
|
|
|
array_configs+=(server.cfg)
|
|
array_configs+=(server.cfg)
|
|
|
- fn_fetch_default_config
|
|
|
|
|
fn_default_config_remote
|
|
fn_default_config_remote
|
|
|
fn_set_config_vars
|
|
fn_set_config_vars
|
|
|
fn_list_config_locations
|
|
fn_list_config_locations
|
|
|
elif [ "${shortname}" == "zmr" ]; then
|
|
elif [ "${shortname}" == "zmr" ]; then
|
|
|
array_configs+=(server.cfg)
|
|
array_configs+=(server.cfg)
|
|
|
- fn_fetch_default_config
|
|
|
|
|
fn_default_config_remote
|
|
fn_default_config_remote
|
|
|
fn_set_config_vars
|
|
fn_set_config_vars
|
|
|
fn_list_config_locations
|
|
fn_list_config_locations
|
|
|
elif [ "${shortname}" == "zps" ]; then
|
|
elif [ "${shortname}" == "zps" ]; then
|
|
|
array_configs+=(server.cfg)
|
|
array_configs+=(server.cfg)
|
|
|
- fn_fetch_default_config
|
|
|
|
|
fn_default_config_remote
|
|
fn_default_config_remote
|
|
|
fn_set_config_vars
|
|
fn_set_config_vars
|
|
|
fn_list_config_locations
|
|
fn_list_config_locations
|