Browse Source

Merge branch 'develop' into release/v19.10.0

pull/2491/head
Daniel Gibbs 6 years ago
parent
commit
2c94bc41b9
  1. 1
      LICENSE
  2. 2
      README.md
  3. 2
      lgsm/functions/check_deps.sh
  4. 6
      lgsm/functions/check_permissions.sh
  5. 1
      lgsm/functions/check_system_dir.sh
  6. 6
      lgsm/functions/command_fastdl.sh
  7. 4
      lgsm/functions/command_monitor.sh
  8. 6
      lgsm/functions/command_start.sh
  9. 4
      lgsm/functions/info_distro.sh
  10. 68
      lgsm/functions/info_messages.sh
  11. 192
      lgsm/functions/install_config.sh
  12. 2
      lgsm/functions/install_server_files.sh
  13. 4
      lgsm/functions/logs.sh
  14. 2
      lgsm/functions/mods_core.sh
  15. 2
      lgsm/functions/query_gamedig.sh
  16. 2
      linuxgsm.sh
  17. 2
      tests/tests_fctrserver.sh
  18. 2
      tests/tests_jc2server.sh
  19. 2
      tests/tests_mcserver.sh
  20. 2
      tests/tests_ts3server.sh

1
LICENSE

@ -19,4 +19,3 @@ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE. SOFTWARE.

2
README.md

@ -23,7 +23,7 @@ Traditionally game servers are not easy to manage yourself. Admins often have to
* :floppy_disk: Backup * :floppy_disk: Backup
* :computer: Console * :computer: Console
## :penguin: Compatibility ## :penguin: Compatibility
Linux Game Server Managers are tested to work on the following Linux distros. Linux Game Server Managers are tested to work on the following Linux distros.

2
lgsm/functions/check_deps.sh

@ -120,7 +120,7 @@ fn_install_universe_repo(){
sleep 1 sleep 1
echo -en " \r" echo -en " \r"
cmd="sudo apt-add-repository universe" cmd="sudo apt-add-repository universe"
eval ${cmd} eval "${cmd}"
if [ $? -eq 0 ]; then if [ $? -eq 0 ]; then
fn_print_complete_nl "Installing universe repository completed." fn_print_complete_nl "Installing universe repository completed."
fn_script_log_pass "Installing universe repository completed." fn_script_log_pass "Installing universe repository completed."

6
lgsm/functions/check_permissions.sh

@ -9,17 +9,17 @@ local commandname="CHECK"
fn_check_ownership(){ fn_check_ownership(){
if [ -f "${rootdir}/${selfname}" ]; then if [ -f "${rootdir}/${selfname}" ]; then
if [ "$(find "${rootdir}/${selfname}" -not -user $(whoami) | wc -l)" -ne "0" ]; then if [ "$(find "${rootdir}/${selfname}" -not -user "$(whoami)" | wc -l)" -ne "0" ]; then
selfownissue=1 selfownissue=1
fi fi
fi fi
if [ -d "${functionsdir}" ]; then if [ -d "${functionsdir}" ]; then
if [ "$(find "${functionsdir}" -not -user $(whoami) | wc -l)" -ne "0" ]; then if [ "$(find "${functionsdir}" -not -user "$(whoami)" | wc -l)" -ne "0" ]; then
funcownissue=1 funcownissue=1
fi fi
fi fi
if [ -d "${serverfiles}" ]; then if [ -d "${serverfiles}" ]; then
if [ "$(find "${serverfiles}" -not -user $(whoami) | wc -l)" -ne "0" ]; then if [ "$(find "${serverfiles}" -not -user "$(whoami)" | wc -l)" -ne "0" ]; then
filesownissue=1 filesownissue=1
fi fi
fi fi

1
lgsm/functions/check_system_dir.sh

@ -20,4 +20,3 @@ if [ ! -d "${checkdir}" ]; then
fi fi
core_exit.sh core_exit.sh
fi fi

6
lgsm/functions/command_fastdl.sh

@ -196,7 +196,7 @@ fn_fastdl_preview(){
echo "${ext}" >> "${tmpdir}/fastdl_files_to_compress.txt" echo "${ext}" >> "${tmpdir}/fastdl_files_to_compress.txt"
done < <(find "${systemdir}/${directory}" -type f -iname ${allowed_extention}) done < <(find "${systemdir}/${directory}" -type f -iname ${allowed_extention})
tput rc; tput el tput rc; tput el
printf "gathering ${directory} ${allowed_extention} : ${fileswc}..." echo "gathering ${directory} ${allowed_extention} : ${fileswc}..."
if [ ${fileswc} != 0 ]; then if [ ${fileswc} != 0 ]; then
fn_print_ok_eol_nl fn_print_ok_eol_nl
else else
@ -245,7 +245,7 @@ fn_fastdl_gmod(){
while read -r fastdlfile; do while read -r fastdlfile; do
((fileswc++)) ((fileswc++))
tput rc; tput el tput rc; tput el
printf "copying ${allowed_extention} : ${fileswc}..." echo "copying ${allowed_extention} : ${fileswc}..."
cp --parents "${fastdlfile}" "${fastdldir}" cp --parents "${fastdlfile}" "${fastdldir}"
exitcode=$? exitcode=$?
if [ ${exitcode} -ne 0 ]; then if [ ${exitcode} -ne 0 ]; then
@ -255,7 +255,7 @@ fn_fastdl_gmod(){
else else
fn_script_log_pass "Copying ${fastdlfile} > ${fastdldir}" fn_script_log_pass "Copying ${fastdlfile} > ${fastdldir}"
fi fi
done < <(find . -type f -iname ${allowed_extention}) done < <(find . -type f -iname "${allowed_extention}")
if [ ${fileswc} != 0 ]; then if [ ${fileswc} != 0 ]; then
fn_print_ok_eol_nl fn_print_ok_eol_nl
fi fi

4
lgsm/functions/command_monitor.sh

@ -96,8 +96,8 @@ fn_monitor_check_lockfile(){
} }
fn_monitor_check_update(){ fn_monitor_check_update(){
# Monitor will not check if update is running. # Monitor will check if update is already running.
if [ "$(ps -ef | grep "${selfname} update" | grep -v grep | wc -l)" != "0" ]; then if [ "$(pgrep "${selfname} update" | wc -l)" != "0" ]; then
fn_print_error_nl "SteamCMD is currently checking for updates" fn_print_error_nl "SteamCMD is currently checking for updates"
fn_script_log_error "SteamCMD is currently checking for updates" fn_script_log_error "SteamCMD is currently checking for updates"
core_exit.sh core_exit.sh

6
lgsm/functions/command_start.sh

@ -35,7 +35,7 @@ fn_start_teamspeak3(){
if [ ! -f "${executabledir}/.ts3server_license_accepted" ]; then if [ ! -f "${executabledir}/.ts3server_license_accepted" ]; then
install_eula.sh install_eula.sh
fi fi
cd "${executabledir}" cd "${executabledir}" || exit
if [ "${ts3serverpass}" == "1" ]; then if [ "${ts3serverpass}" == "1" ]; then
./ts3server_startscript.sh start serveradmin_password="${newpassword}" inifile="${servercfgfullpath}" > /dev/null 2>&1 ./ts3server_startscript.sh start serveradmin_password="${newpassword}" inifile="${servercfgfullpath}" > /dev/null 2>&1
else else
@ -86,7 +86,7 @@ fn_start_tmux(){
# Create lockfile # Create lockfile
date > "${rootdir}/${lockselfname}" date > "${rootdir}/${lockselfname}"
cd "${executabledir}" cd "${executabledir}" || exit
tmux new-session -d -x "${sessionwidth}" -y "${sessionheight}" -s "${servicename}" "${executable} ${parms}" 2> "${lgsmlogdir}/.${servicename}-tmux-error.tmp" tmux new-session -d -x "${sessionwidth}" -y "${sessionheight}" -s "${servicename}" "${executable} ${parms}" 2> "${lgsmlogdir}/.${servicename}-tmux-error.tmp"
# Create logfile. # Create logfile.
@ -154,7 +154,7 @@ fn_sleep_time
echo "" echo ""
echo "Fix" echo "Fix"
echo "=================================" echo "================================="
if [ ! $(grep "tty:" /etc/group|grep "$(whoami)") ]; then if [ ! "$(grep "tty:" /etc/group|grep "$(whoami)")" ]; then
echo "$(whoami) is not part of the tty group." echo "$(whoami) is not part of the tty group."
fn_script_log_info "$(whoami) is not part of the tty group." fn_script_log_info "$(whoami) is not part of the tty group."
group=$(grep tty /etc/group) group=$(grep tty /etc/group)

4
lgsm/functions/info_distro.sh

@ -235,9 +235,9 @@ fi
if [ "$(command -v jq 2>/dev/null)" ]; then if [ "$(command -v jq 2>/dev/null)" ]; then
if [ "${ip}" ]&&[ "${port}" ]; then if [ "${ip}" ]&&[ "${port}" ]; then
if [ "${steammaster}" == "true" ]; then if [ "${steammaster}" == "true" ]; then
masterserver=$(${curlpath} -m 3 -s 'https://api.steampowered.com/ISteamApps/GetServersAtAddress/v0001?addr='${ip}':'${port}'&format=json' | jq '.response.servers[]|.addr' | wc -l) masterserver="$(${curlpath} -m 3 -s 'https://api.steampowered.com/ISteamApps/GetServersAtAddress/v0001?addr='${ip}':'${port}'&format=json' | jq '.response.servers[]|.addr' | wc -l)"
if [ "${masterserver}" == "0" ]; then if [ "${masterserver}" == "0" ]; then
masterserver=$(${curlpath} -m 3 -s 'https://api.steampowered.com/ISteamApps/GetServersAtAddress/v0001?addr='${extip}':'${port}'&format=json' | jq '.response.servers[]|.addr' | wc -l) masterserver="$(${curlpath} -m 3 -s 'https://api.steampowered.com/ISteamApps/GetServersAtAddress/v0001?addr='${extip}':'${port}'&format=json' | jq '.response.servers[]|.addr' | wc -l)"
fi fi
if [ "${masterserver}" == "0" ]; then if [ "${masterserver}" == "0" ]; then
displaymasterserver="false" displaymasterserver="false"

68
lgsm/functions/info_messages.sh

@ -1228,85 +1228,87 @@ fn_info_message_soldat() {
fn_info_message_select_engine(){ fn_info_message_select_engine(){
# Display details depending on game or engine. # Display details depending on game or engine.
if [ "${gamename}" == "7 Days To Die" ]; then if [ "${shortname}" == "sdtd" ]; then
fn_info_message_sdtd fn_info_message_sdtd
elif [ "${gamename}" == "ARK: Survival Evolved" ]; then elif [ "${shortname}" == "ark" ]; then
fn_info_message_ark fn_info_message_ark
elif [ "${gamename}" == "Ballistic Overkill" ]; then elif [ "${shortname}" == "bo" ]; then
fn_info_message_ballisticoverkill fn_info_message_ballisticoverkill
elif [ "${gamename}" == "Barotrauma" ]; then elif [ "${shortname}" == "bt" ]; then
fn_info_message_barotrauma fn_info_message_barotrauma
elif [ "${gamename}" == "Battalion 1944" ]; then elif [ "${shortname}" == "bt1944" ]; then
fn_info_message_battalion1944 fn_info_message_battalion1944
elif [ "${gamename}" == "Call of Duty" ]; then elif [ "${shortname}" == "cod" ]; then
fn_info_message_cod fn_info_message_cod
elif [ "${gamename}" == "Call of Duty: United Offensive" ]; then elif [ "${shortname}" == "coduo" ]; then
fn_info_message_coduo fn_info_message_coduo
elif [ "${gamename}" == "Call of Duty 2" ]; then elif [ "${shortname}" == "cod2" ]; then
fn_info_message_cod2 fn_info_message_cod2
elif [ "${gamename}" == "Call of Duty 4" ]; then elif [ "${shortname}" == "cod4" ]; then
fn_info_message_cod4 fn_info_message_cod4
elif [ "${gamename}" == "Call of Duty: World at War" ]; then elif [ "${shortname}" == "codwaw" ]; then
fn_info_message_codwaw fn_info_message_codwaw
elif [ "${gamename}" == "Eco" ]; then elif [ "${shortname}" == "eco" ]; then
fn_info_message_eco fn_info_message_eco
elif [ "${gamename}" == "ET: Legacy" ]; then elif [ "${shortname}" == "etl" ]; then
fn_info_message_etlegacy fn_info_message_etlegacy
elif [ "${gamename}" == "Factorio" ]; then elif [ "${shortname}" == "fctr" ]; then
fn_info_message_factorio fn_info_message_factorio
elif [ "${gamename}" == "Hurtworld" ]; then elif [ "${shortname}" == "hw" ]; then
fn_info_message_hurtworld fn_info_message_hurtworld
elif [ "${shortname}" == "inss" ]; then elif [ "${shortname}" == "inss" ]; then
fn_info_message_inss fn_info_message_inss
elif [ "${gamename}" == "Just Cause 2" ]; then elif [ "${shortname}" == "jc2" ]; then
fn_info_message_justcause2 fn_info_message_justcause2
elif [ "${gamename}" == "Just Cause 3" ]; then elif [ "${shortname}" == "jc3" ]; then
fn_info_message_justcause3 fn_info_message_justcause3
elif [ "${shortname}" == "kf2" ]; then elif [ "${shortname}" == "kf2" ]; then
fn_info_message_kf2 fn_info_message_kf2
elif [ "${shortname}" == "pstbs" ]; then elif [ "${shortname}" == "pstbs" ]; then
fn_info_message_pstbs fn_info_message_pstbs
elif [ "${gamename}" == "Project Cars" ]; then elif [ "${shortname}" == "pc" ]; then
fn_info_message_projectcars fn_info_message_projectcars
elif [ "${gamename}" == "QuakeWorld" ]; then elif [ "${shortname}" == "qw" ]; then
fn_info_message_quake fn_info_message_quake
elif [ "${gamename}" == "Quake 2" ]; then elif [ "${shortname}" == "q2" ]; then
fn_info_message_quake2 fn_info_message_quake2
elif [ "${gamename}" == "Quake 3: Arena" ]; then elif [ "${shortname}" == "q3" ]; then
fn_info_message_quake3 fn_info_message_quake3
elif [ "${gamename}" == "Quake Live" ]; then elif [ "${shortname}" == "ql" ]; then
fn_info_message_quakelive fn_info_message_quakelive
elif [ "${gamename}" == "San Andreas Multiplayer" ]; then elif [ "${shortname}" == "samp" ]; then
fn_info_message_samp fn_info_message_samp
elif [ "${gamename}" == "Squad" ]; then elif [ "${shortname}" == "squad" ]; then
fn_info_message_squad fn_info_message_squad
elif [ "${gamename}" == "Stationeers" ]; then elif [ "${shortname}" == "st" ]; then
fn_info_message_stationeers fn_info_message_stationeers
elif [ "${shortname}" == "sof2" ]; then
fn_info_message_sof2
elif [ "${shortname}" == "sol" ]; then elif [ "${shortname}" == "sol" ]; then
fn_info_message_soldat fn_info_message_soldat
elif [ "${shortname}" == "sbots" ]; then elif [ "${shortname}" == "sbots" ]; then
fn_info_message_sbots fn_info_message_sbots
elif [ "${gamename}" == "TeamSpeak 3" ]; then elif [ "${shortname}" == "ts3" ]; then
fn_info_message_teamspeak3 fn_info_message_teamspeak3
elif [ "${gamename}" == "Tower Unite" ]; then elif [ "${shortname}" == "tu" ]; then
fn_info_message_towerunite fn_info_message_towerunite
elif [ "${shortname}" == "unt" ]; then elif [ "${shortname}" == "unt" ]; then
fn_info_message_unturned fn_info_message_unturned
elif [ "${shortname}" == "mh" ]; then elif [ "${shortname}" == "mh" ]; then
fn_info_message_mordhau fn_info_message_mordhau
elif [ "${gamename}" == "Multi Theft Auto" ]; then elif [ "${shortname}" == "mta" ]; then
fn_info_message_mta fn_info_message_mta
elif [ "${gamename}" == "Mumble" ]; then elif [ "${shortname}" == "mumble" ]; then
fn_info_message_mumble fn_info_message_mumble
elif [ "${gamename}" == "Return to Castle Wolfenstein" ]; then elif [ "${shortname}" == "rtcw" ]; then
fn_info_message_rtcw fn_info_message_rtcw
elif [ "${gamename}" == "Rust" ]; then elif [ "${shortname}" == "rust" ]; then
fn_info_message_rust fn_info_message_rust
elif [ "${gamename}" == "Wurm Unlimited" ]; then elif [ "${shortname}" == "wurm" ]; then
fn_info_message_wurmunlimited fn_info_message_wurmunlimited
elif [ "${shortname}" == "rw" ]; then elif [ "${shortname}" == "rw" ]; then
fn_info_message_risingworld fn_info_message_risingworld
elif [ "${gamename}" == "Wolfenstein: Enemy Territory" ]; then elif [ "${shortname}" == "wet" ]; then
fn_info_message_wolfensteinenemyterritory fn_info_message_wolfensteinenemyterritory
elif [ "${engine}" == "refractor" ]; then elif [ "${engine}" == "refractor" ]; then
fn_info_message_refractor fn_info_message_refractor
@ -1324,8 +1326,6 @@ fn_info_message_select_engine(){
fn_info_message_seriousengine35 fn_info_message_seriousengine35
elif [ "${engine}" == "source" ]; then elif [ "${engine}" == "source" ]; then
fn_info_message_source fn_info_message_source
elif [ "${gamename}" == "Soldier Of Fortune 2: Gold Edition" ]; then
fn_info_message_sof2
elif [ "${engine}" == "spark" ]; then elif [ "${engine}" == "spark" ]; then
fn_info_message_spark fn_info_message_spark
elif [ "${engine}" == "starbound" ]; then elif [ "${engine}" == "starbound" ]; then

192
lgsm/functions/install_config.sh

@ -40,10 +40,10 @@ fn_default_config_remote(){
if [ "${config}" == "${servercfgdefault}" ]; then if [ "${config}" == "${servercfgdefault}" ]; then
mkdir -p "${servercfgdir}" mkdir -p "${servercfgdir}"
cp -nv "${lgsmdir}/config-default/config-game/${config}" "${servercfgfullpath}" cp -nv "${lgsmdir}/config-default/config-game/${config}" "${servercfgfullpath}"
elif [ "${gamename}" == "ARMA 3" ]&&[ "${config}" == "${networkcfgdefault}" ]; then elif [ "${shortname}" == "arma3" ]&&[ "${config}" == "${networkcfgdefault}" ]; then
mkdir -p "${servercfgdir}" mkdir -p "${servercfgdir}"
cp -nv "${lgsmdir}/config-default/config-game/${config}" "${networkcfgfullpath}" cp -nv "${lgsmdir}/config-default/config-game/${config}" "${networkcfgfullpath}"
elif [ "${gamename}" == "Don't Starve Together" ]&&[ "${config}" == "${clustercfgdefault}" ]; then elif [ "${shortname}" == "dst" ]&&[ "${config}" == "${clustercfgdefault}" ]; then
cp -nv "${lgsmdir}/config-default/config-game/${clustercfgdefault}" "${clustercfgfullpath}" cp -nv "${lgsmdir}/config-default/config-game/${clustercfgdefault}" "${clustercfgfullpath}"
else else
mkdir -p "${servercfgdir}" mkdir -p "${servercfgdir}"
@ -144,514 +144,502 @@ fn_set_dst_config_vars(){
echo "" echo ""
} }
if [ "${gamename}" == "7 Days To Die" ]; then if [ "${shortname}" == "sdtd" ]; then
gamedirname="7DaysToDie" gamedirname="7DaysToDie"
fn_default_config_local fn_default_config_local
elif [ "${gamename}" == "Action half-life" ]; then elif [ "${shortname}" == "ahl" ]; then
gamedirname="ActionHalfLife" gamedirname="ActionHalfLife"
array_configs+=( server.cfg ) array_configs+=( server.cfg )
fn_fetch_default_config fn_fetch_default_config
fn_default_config_remote fn_default_config_remote
fn_set_config_vars fn_set_config_vars
elif [ "${gamename}" == "ARK: Survival Evolved" ]; then elif [ "${shortname}" == "ark" ]; then
gamedirname="ARKSurvivalEvolved" gamedirname="ARKSurvivalEvolved"
fn_check_cfgdir fn_check_cfgdir
array_configs+=( GameUserSettings.ini ) array_configs+=( GameUserSettings.ini )
fn_fetch_default_config fn_fetch_default_config
fn_default_config_remote fn_default_config_remote
fn_set_config_vars fn_set_config_vars
elif [ "${gamename}" == "ARMA 3" ]; then elif [ "${shortname}" == "arma3" ]; then
gamedirname="Arma3" gamedirname="Arma3"
fn_check_cfgdir fn_check_cfgdir
array_configs+=( server.cfg network.cfg ) array_configs+=( server.cfg network.cfg )
fn_fetch_default_config fn_fetch_default_config
fn_default_config_remote fn_default_config_remote
fn_set_config_vars fn_set_config_vars
elif [ "${gamename}" == "Ballistic Overkill" ]; then elif [ "${shortname}" == "bo" ]; then
gamedirname="BallisticOverkill" gamedirname="BallisticOverkill"
array_configs+=( config.txt ) array_configs+=( config.txt )
fn_fetch_default_config fn_fetch_default_config
fn_default_config_remote fn_default_config_remote
fn_set_config_vars fn_set_config_vars
elif [ "${gamename}" == "Base Defense" ]; then elif [ "${shortname}" == "bo" ]; then
gamedirname="BaseDefense" gamedirname="BaseDefense"
array_configs+=( server.cfg ) array_configs+=( server.cfg )
fn_fetch_default_config fn_fetch_default_config
fn_default_config_remote fn_default_config_remote
fn_set_config_vars fn_set_config_vars
elif [ "${gamename}" == "Barotrauma" ]; then elif [ "${shortname}" == "bt" ]; then
gamedirname="Barotrauma" gamedirname="Barotrauma"
fn_check_cfgdir fn_check_cfgdir
array_configs+=( serversettings.xml ) array_configs+=( serversettings.xml )
fn_fetch_default_config fn_fetch_default_config
fn_default_config_remote fn_default_config_remote
fn_set_config_vars fn_set_config_vars
elif [ "${gamename}" == "Battalion 1944" ]; then elif [ "${shortname}" == "Battalion 1944" ]; then
gamedirname="Battalion1944" gamedirname="Battalion1944"
fn_check_cfgdir fn_check_cfgdir
array_configs+=( DefaultGame.ini ) array_configs+=( DefaultGame.ini )
fn_fetch_default_config fn_fetch_default_config
fn_default_config_remote fn_default_config_remote
fn_set_config_vars fn_set_config_vars
elif [ "${gamename}" == "Battlefield: 1942" ]; then elif [ "${shortname}" == "bt1942" ]; then
gamedirname="Battlefield1942" gamedirname="Battlefield1942"
array_configs+=( serversettings.con ) array_configs+=( serversettings.con )
fn_fetch_default_config fn_fetch_default_config
fn_default_config_remote fn_default_config_remote
fn_set_config_vars fn_set_config_vars
elif [ "${gamename}" == "Blade Symphony" ]; then elif [ "${shortname}" == "bs" ]; then
gamedirname="BladeSymphony" gamedirname="BladeSymphony"
array_configs+=( server.cfg ) array_configs+=( server.cfg )
fn_fetch_default_config fn_fetch_default_config
fn_default_config_remote fn_default_config_remote
fn_set_config_vars fn_set_config_vars
elif [ "${gamename}" == "BrainBread" ]; then elif [ "${shortname}" == "bb" ]; then
gamedirname="BrainBread" gamedirname="BrainBread"
array_configs+=( server.cfg ) array_configs+=( server.cfg )
fn_fetch_default_config fn_fetch_default_config
fn_default_config_remote fn_default_config_remote
fn_set_config_vars fn_set_config_vars
elif [ "${gamename}" == "BrainBread 2" ]; then elif [ "${shortname}" == "bb2" ]; then
gamedirname="BrainBread2" gamedirname="BrainBread2"
array_configs+=( server.cfg ) array_configs+=( server.cfg )
fn_fetch_default_config fn_fetch_default_config
fn_default_config_remote fn_default_config_remote
fn_set_config_vars fn_set_config_vars
elif [ "${gamename}" == "Black Mesa: Deathmatch" ]; then elif [ "${shortname}" == "bmdm" ]; then
gamedirname="BlackMesa" gamedirname="BlackMesa"
array_configs+=( server.cfg ) array_configs+=( server.cfg )
fn_fetch_default_config fn_fetch_default_config
fn_default_config_remote fn_default_config_remote
fn_set_config_vars fn_set_config_vars
elif [ "${gamename}" == "Call of Duty" ]; then elif [ "${shortname}" == "cod" ]; then
gamedirname="CallOfDuty" gamedirname="CallOfDuty"
array_configs+=( server.cfg ) array_configs+=( server.cfg )
fn_fetch_default_config fn_fetch_default_config
fn_default_config_remote fn_default_config_remote
fn_set_config_vars fn_set_config_vars
elif [ "${gamename}" == "Call of Duty: United Offensive" ]; then elif [ "${shortname}" == "coduo" ]; then
gamedirname="CallOfDutyUnitedOffensive" gamedirname="CallOfDutyUnitedOffensive"
array_configs+=( server.cfg ) array_configs+=( server.cfg )
fn_fetch_default_config fn_fetch_default_config
fn_default_config_remote fn_default_config_remote
fn_set_config_vars fn_set_config_vars
elif [ "${gamename}" == "Call of Duty 2" ]; then elif [ "${shortname}" == "cod2" ]; then
gamedirname="CallOfDuty2" gamedirname="CallOfDuty2"
array_configs+=( server.cfg ) array_configs+=( server.cfg )
fn_fetch_default_config fn_fetch_default_config
fn_default_config_remote fn_default_config_remote
fn_set_config_vars fn_set_config_vars
elif [ "${gamename}" == "Call of Duty 4" ]; then elif [ "${shortname}" == "cod4" ]; then
gamedirname="CallOfDuty4" gamedirname="CallOfDuty4"
array_configs+=( server.cfg ) array_configs+=( server.cfg )
fn_fetch_default_config fn_fetch_default_config
fn_default_config_remote fn_default_config_remote
fn_set_config_vars fn_set_config_vars
elif [ "${gamename}" == "Call of Duty: World at War" ]; then elif [ "${shortname}" == "codwaw" ]; then
gamedirname="CallOfDutyWorldAtWar" gamedirname="CallOfDutyWorldAtWar"
array_configs+=( server.cfg ) array_configs+=( server.cfg )
fn_fetch_default_config fn_fetch_default_config
fn_default_config_remote fn_default_config_remote
fn_set_config_vars fn_set_config_vars
elif [ "${gamename}" == "Codename CURE" ]; then elif [ "${shortname}" == "cc" ]; then
gamedirname="CodenameCURE" gamedirname="CodenameCURE"
array_configs+=( server.cfg ) array_configs+=( server.cfg )
fn_fetch_default_config fn_fetch_default_config
fn_default_config_remote fn_default_config_remote
fn_set_config_vars fn_set_config_vars
elif [ "${gamename}" == "Counter-Strike 1.6" ]; then elif [ "${shortname}" == "cs" ]; then
gamedirname="CounterStrike" gamedirname="CounterStrike"
array_configs+=( server.cfg ) array_configs+=( server.cfg )
fn_fetch_default_config fn_fetch_default_config
fn_default_config_remote fn_default_config_remote
fn_set_config_vars fn_set_config_vars
elif [ "${gamename}" == "Counter-Strike: Condition Zero" ]; then elif [ "${shortname}" == "cscz" ]; then
gamedirname="CounterStrikeConditionZero" gamedirname="CounterStrikeConditionZero"
array_configs+=( server.cfg ) array_configs+=( server.cfg )
fn_fetch_default_config fn_fetch_default_config
fn_default_config_remote fn_default_config_remote
fn_set_config_vars fn_set_config_vars
elif [ "${gamename}" == "Counter-Strike: Global Offensive" ]; then elif [ "${shortname}" == "csgo" ]; then
gamedirname="CounterStrikeGlobalOffensive" gamedirname="CounterStrikeGlobalOffensive"
array_configs+=( server.cfg ) array_configs+=( server.cfg )
fn_fetch_default_config fn_fetch_default_config
fn_default_config_remote fn_default_config_remote
fn_set_config_vars fn_set_config_vars
elif [ "${gamename}" == "Classic Offensive" ]; then elif [ "${shortname}" == "css" ]; then
gamedirname="ClassicOffensive"
array_configs+=( server.cfg )
fn_fetch_default_config
fn_default_config_remote
fn_set_config_vars
elif [ "${gamename}" == "Counter-Strike: Source" ]; then
gamedirname="CounterStrikeSource" gamedirname="CounterStrikeSource"
array_configs+=( server.cfg ) array_configs+=( server.cfg )
fn_fetch_default_config fn_fetch_default_config
fn_default_config_remote fn_default_config_remote
fn_set_config_vars fn_set_config_vars
elif [ "${gamename}" == "Day of Defeat" ]; then elif [ "${shortname}" == "dod" ]; then
gamedirname="DayOfDefeat" gamedirname="DayOfDefeat"
array_configs+=( server.cfg ) array_configs+=( server.cfg )
fn_fetch_default_config fn_fetch_default_config
fn_default_config_remote fn_default_config_remote
fn_set_config_vars fn_set_config_vars
elif [ "${gamename}" == "Day of Defeat: Source" ]; then elif [ "${shortname}" == "dods" ]; then
gamedirname="DayOfDefeatSource" gamedirname="DayOfDefeatSource"
array_configs+=( server.cfg ) array_configs+=( server.cfg )
fn_fetch_default_config fn_fetch_default_config
fn_default_config_remote fn_default_config_remote
fn_set_config_vars fn_set_config_vars
elif [ "${gamename}" == "Day of Infamy" ]; then elif [ "${shortname}" == "doi" ]; then
gamedirname="DayOfInfamy" gamedirname="DayOfInfamy"
array_configs+=( server.cfg ) array_configs+=( server.cfg )
fn_fetch_default_config fn_fetch_default_config
fn_default_config_remote fn_default_config_remote
fn_set_config_vars fn_set_config_vars
elif [ "${gamename}" == "Deathmatch Classic" ]; then elif [ "${shortname}" == "dmc" ]; then
gamedirname="DeathmatchClassic" gamedirname="DeathmatchClassic"
array_configs+=( server.cfg ) array_configs+=( server.cfg )
fn_fetch_default_config fn_fetch_default_config
fn_default_config_remote fn_default_config_remote
fn_set_config_vars fn_set_config_vars
elif [ "${gamename}" == "Don't Starve Together" ]; then elif [ "${shortname}" == "dst" ]; then
gamedirname="DontStarveTogether" gamedirname="DontStarveTogether"
fn_check_cfgdir fn_check_cfgdir
array_configs+=( cluster.ini server.ini ) array_configs+=( cluster.ini server.ini )
fn_fetch_default_config fn_fetch_default_config
fn_default_config_remote fn_default_config_remote
fn_set_dst_config_vars fn_set_dst_config_vars
elif [ "${gamename}" == "Double Action: Boogaloo" ]; then elif [ "${shortname}" == "dab" ]; then
gamedirname="DoubleActionBoogaloo" gamedirname="DoubleActionBoogaloo"
array_configs+=( server.cfg ) array_configs+=( server.cfg )
fn_fetch_default_config fn_fetch_default_config
fn_default_config_remote fn_default_config_remote
fn_set_config_vars fn_set_config_vars
elif [ "${gamename}" == "Dystopia" ]; then elif [ "${shortname}" == "dys" ]; then
gamedirname="Dystopia" gamedirname="Dystopia"
array_configs+=( server.cfg ) array_configs+=( server.cfg )
fn_fetch_default_config fn_fetch_default_config
fn_default_config_remote fn_default_config_remote
fn_set_config_vars fn_set_config_vars
elif [ "${gamename}" == "Eco" ]; then elif [ "${shortname}" == "eco" ]; then
gamedirname="Eco" gamedirname="Eco"
array_configs+=( Network.eco ) array_configs+=( Network.eco )
fn_fetch_default_config fn_fetch_default_config
fn_default_config_remote fn_default_config_remote
fn_set_config_vars fn_set_config_vars
elif [ "${gamename}" == "ET: Legacy" ]; then elif [ "${shortname}" == "etl" ]; then
gamedirname="ETLegacy" gamedirname="ETLegacy"
array_configs+=( server.cfg ) array_configs+=( server.cfg )
fn_fetch_default_config fn_fetch_default_config
fn_default_config_remote fn_default_config_remote
fn_set_config_vars fn_set_config_vars
elif [ "${gamename}" == "Factorio" ]; then elif [ "${shortname}" == "fctr" ]; then
gamedirname="Factorio" gamedirname="Factorio"
array_configs+=( server-settings.json ) array_configs+=( server-settings.json )
fn_fetch_default_config fn_fetch_default_config
fn_default_config_remote fn_default_config_remote
fn_set_config_vars fn_set_config_vars
elif [ "${gamename}" == "Fistful of Frags" ]; then elif [ "${shortname}" == "fof" ]; then
gamedirname="FistfulofFrags" gamedirname="FistfulofFrags"
array_configs+=( server.cfg ) array_configs+=( server.cfg )
fn_fetch_default_config fn_fetch_default_config
fn_default_config_remote fn_default_config_remote
fn_set_config_vars fn_set_config_vars
elif [ "${gamename}" == "Garry's Mod" ]; then elif [ "${shortname}" == "gmod" ]; then
gamedirname="GarrysMod" gamedirname="GarrysMod"
array_configs+=( server.cfg ) array_configs+=( server.cfg )
fn_fetch_default_config fn_fetch_default_config
fn_default_config_remote fn_default_config_remote
fn_set_config_vars fn_set_config_vars
elif [ "${gamename}" == "GoldenEye: Source" ]; then elif [ "${shortname}" == "ges" ]; then
gamedirname="GoldenEyeSource" gamedirname="GoldenEyeSource"
array_configs+=( server.cfg ) array_configs+=( server.cfg )
fn_fetch_default_config fn_fetch_default_config
fn_default_config_remote fn_default_config_remote
fn_set_config_vars fn_set_config_vars
elif [ "${gamename}" == "Half Life: Deathmatch" ]; then elif [ "${shortname}" == "hldm" ]; then
gamedirname="HalfLifeDeathmatch" gamedirname="HalfLifeDeathmatch"
array_configs+=( server.cfg ) array_configs+=( server.cfg )
fn_fetch_default_config fn_fetch_default_config
fn_default_config_remote fn_default_config_remote
fn_set_config_vars fn_set_config_vars
elif [ "${gamename}" == "Half-Life Deathmatch: Source" ]; then elif [ "${shortname}" == "hldms" ]; then
gamedirname="HalfLifeDeathmatchSource" gamedirname="HalfLifeDeathmatchSource"
array_configs+=( server.cfg ) array_configs+=( server.cfg )
fn_fetch_default_config fn_fetch_default_config
fn_default_config_remote fn_default_config_remote
fn_set_config_vars fn_set_config_vars
elif [ "${gamename}" == "Half-Life: Opposing Force" ]; then elif [ "${shortname}" == "opfor" ]; then
gamedirname="OpposingForce" gamedirname="OpposingForce"
array_configs+=( server.cfg ) array_configs+=( server.cfg )
fn_fetch_default_config fn_fetch_default_config
fn_default_config_remote fn_default_config_remote
fn_set_config_vars fn_set_config_vars
elif [ "${gamename}" == "Half Life 2: Deathmatch" ]; then elif [ "${shortname}" == "hl2dm" ]; then
gamedirname="HalfLife2Deathmatch" gamedirname="HalfLife2Deathmatch"
array_configs+=( server.cfg ) array_configs+=( server.cfg )
fn_fetch_default_config fn_fetch_default_config
fn_default_config_remote fn_default_config_remote
fn_set_config_vars fn_set_config_vars
elif [ "${gamename}" == "Insurgency" ]; then elif [ "${shortname}" == "ins" ]; then
gamedirname="Insurgency" gamedirname="Insurgency"
array_configs+=( server.cfg ) array_configs+=( server.cfg )
fn_fetch_default_config fn_fetch_default_config
fn_default_config_remote fn_default_config_remote
fn_set_config_vars fn_set_config_vars
elif [ "${gamename}" == "IOSoccer" ]; then elif [ "${shortname}" == "ios" ]; then
gamedirname="IOSoccer" gamedirname="IOSoccer"
array_configs+=( server.cfg ) array_configs+=( server.cfg )
fn_fetch_default_config fn_fetch_default_config
fn_default_config_remote fn_default_config_remote
fn_set_config_vars fn_set_config_vars
elif [ "${gamename}" == "Just Cause 2" ]; then elif [ "${shortname}" == "jc2" ]; then
gamedirname="JustCause2" gamedirname="JustCause2"
array_configs+=( config.lua ) array_configs+=( config.lua )
fn_fetch_default_config fn_fetch_default_config
fn_default_config_remote fn_default_config_remote
fn_set_config_vars fn_set_config_vars
elif [ "${gamename}" == "Just Cause 3" ]; then elif [ "${shortname}" == "jc3" ]; then
gamedirname="JustCause3" gamedirname="JustCause3"
array_configs+=( config.json ) array_configs+=( config.json )
fn_fetch_default_config fn_fetch_default_config
fn_default_config_remote fn_default_config_remote
fn_set_config_vars fn_set_config_vars
elif [ "${gamename}" == "Killing Floor" ]; then elif [ "${shortname}" == "kf" ]; then
gamedirname="KillingFloor" gamedirname="KillingFloor"
array_configs+=( Default.ini ) array_configs+=( Default.ini )
fn_fetch_default_config fn_fetch_default_config
fn_default_config_remote fn_default_config_remote
fn_set_config_vars fn_set_config_vars
elif [ "${gamename}" == "Left 4 Dead" ]; then elif [ "${shortname}" == "l4d" ]; then
gamedirname="Left4Dead"
array_configs+=( server.cfg )
fn_fetch_default_config
fn_default_config_remote
fn_set_config_vars
elif [ "${gamename}" == "Left 4 Dead" ]; then
gamedirname="Left4Dead" gamedirname="Left4Dead"
array_configs+=( server.cfg ) array_configs+=( server.cfg )
fn_fetch_default_config fn_fetch_default_config
fn_default_config_remote fn_default_config_remote
fn_set_config_vars fn_set_config_vars
elif [ "${gamename}" == "Left 4 Dead 2" ]; then elif [ "${shortname}" == "l4d2" ]; then
gamedirname="Left4Dead2" gamedirname="Left4Dead2"
array_configs+=( server.cfg ) array_configs+=( server.cfg )
fn_fetch_default_config fn_fetch_default_config
fn_default_config_remote fn_default_config_remote
fn_set_config_vars fn_set_config_vars
elif [ "${gamename}" == "Minecraft" ]; then elif [ "${shortname}" == "mc" ]; then
gamedirname="Minecraft" gamedirname="Minecraft"
array_configs+=( server.properties ) array_configs+=( server.properties )
fn_fetch_default_config fn_fetch_default_config
fn_default_config_remote fn_default_config_remote
fn_set_config_vars fn_set_config_vars
elif [ "${gamename}" == "MORDHAU" ]; then elif [ "${shortname}" == "mh" ]; then
gamedirname="Mordhau" gamedirname="Mordhau"
fn_check_cfgdir fn_check_cfgdir
array_configs+=( Game.ini ) array_configs+=( Game.ini )
fn_fetch_default_config fn_fetch_default_config
fn_default_config_remote fn_default_config_remote
fn_set_config_vars fn_set_config_vars
elif [ "${gamename}" == "Natural Selection" ]; then elif [ "${shortname}" == "ns" ]; then
gamedirname="NaturalSelection" gamedirname="NaturalSelection"
array_configs+=( server.cfg ) array_configs+=( server.cfg )
fn_fetch_default_config fn_fetch_default_config
fn_default_config_remote fn_default_config_remote
fn_set_config_vars fn_set_config_vars
elif [ "${gamename}" == "No More Room in Hell" ]; then elif [ "${shortname}" == "nmrih" ]; then
gamedirname="NoMoreRoominHell" gamedirname="NoMoreRoominHell"
array_configs+=( server.cfg ) array_configs+=( server.cfg )
fn_fetch_default_config fn_fetch_default_config
fn_default_config_remote fn_default_config_remote
fn_set_config_vars fn_set_config_vars
elif [ "${gamename}" == "Nuclear Dawn" ]; then elif [ "${shortname}" == "nd" ]; then
gamedirname="NuclearDawn" gamedirname="NuclearDawn"
array_configs+=( server.cfg ) array_configs+=( server.cfg )
fn_fetch_default_config fn_fetch_default_config
fn_default_config_remote fn_default_config_remote
fn_set_config_vars fn_set_config_vars
elif [ "${gamename}" == "Multi Theft Auto" ]; then elif [ "${shortname}" == "mta" ]; then
gamedirname="MultiTheftAuto" gamedirname="MultiTheftAuto"
fn_check_cfgdir fn_check_cfgdir
array_configs+=( acl.xml mtaserver.conf vehiclecolors.conf ) array_configs+=( acl.xml mtaserver.conf vehiclecolors.conf )
fn_fetch_default_config fn_fetch_default_config
fn_default_config_remote fn_default_config_remote
elif [ "${gamename}" == "Mumble" ]; then elif [ "${shortname}" == "mumble" ]; then
gamedirname="Mumble" gamedirname="Mumble"
array_configs+=( murmur.ini ) array_configs+=( murmur.ini )
fn_fetch_default_config fn_fetch_default_config
fn_default_config_remote fn_default_config_remote
elif [ "${gamename}" == "Pirates, Vikings, and Knights II" ]; then elif [ "${shortname}" == "pvkii" ]; then
gamedirname="PiratesVikingandKnightsII" gamedirname="PiratesVikingandKnightsII"
array_configs+=( server.cfg ) array_configs+=( server.cfg )
fn_fetch_default_config fn_fetch_default_config
fn_default_config_remote fn_default_config_remote
fn_set_config_vars fn_set_config_vars
elif [ "${gamename}" == "Project Zomboid" ]; then elif [ "${shortname}" == "pz" ]; then
gamedirname="ProjectZomboid" gamedirname="ProjectZomboid"
fn_check_cfgdir fn_check_cfgdir
array_configs+=( server.ini ) array_configs+=( server.ini )
fn_fetch_default_config fn_fetch_default_config
fn_default_config_remote fn_default_config_remote
fn_set_config_vars fn_set_config_vars
elif [ "${gamename}" == "Project Cars" ]; then elif [ "${shortname}" == "pc" ]; then
gamedirname="ProjectCars" gamedirname="ProjectCars"
array_configs+=( server.cfg ) array_configs+=( server.cfg )
fn_fetch_default_config fn_fetch_default_config
fn_default_config_remote fn_default_config_remote
fn_set_config_vars fn_set_config_vars
elif [ "${gamename}" == "Quake 2" ]; then elif [ "${shortname}" == "q2" ]; then
gamedirname="Quake2" gamedirname="Quake2"
array_configs+=( server.cfg ) array_configs+=( server.cfg )
fn_fetch_default_config fn_fetch_default_config
fn_default_config_remote fn_default_config_remote
fn_set_config_vars fn_set_config_vars
elif [ "${gamename}" == "Quake 3: Arena" ]; then elif [ "${shortname}" == "q3" ]; then
gamedirname="Quake3Arena" gamedirname="Quake3Arena"
array_configs+=( server.cfg ) array_configs+=( server.cfg )
fn_fetch_default_config fn_fetch_default_config
fn_default_config_remote fn_default_config_remote
fn_set_config_vars fn_set_config_vars
elif [ "${gamename}" == "Quake Live" ]; then elif [ "${shortname}" == "ql" ]; then
gamedirname="QuakeLive" gamedirname="QuakeLive"
array_configs+=( server.cfg ) array_configs+=( server.cfg )
fn_fetch_default_config fn_fetch_default_config
fn_default_config_remote fn_default_config_remote
fn_set_config_vars fn_set_config_vars
elif [ "${gamename}" == "QuakeWorld" ]; then elif [ "${shortname}" == "qw" ]; then
gamedirname="QuakeWorld" gamedirname="QuakeWorld"
array_configs+=( server.cfg ) array_configs+=( server.cfg )
fn_fetch_default_config fn_fetch_default_config
fn_default_config_remote fn_default_config_remote
fn_set_config_vars fn_set_config_vars
elif [ "${gamename}" == "Ricochet" ]; then elif [ "${shortname}" == "ricochet" ]; then
gamedirname="Ricochet" gamedirname="Ricochet"
array_configs+=( server.cfg ) array_configs+=( server.cfg )
fn_fetch_default_config fn_fetch_default_config
fn_default_config_remote fn_default_config_remote
fn_set_config_vars fn_set_config_vars
elif [ "${gamename}" == "Return to Castle Wolfenstein" ]; then elif [ "${shortname}" == "rtcw" ]; then
gamedirname="ReturnToCastleWolfenstein" gamedirname="ReturnToCastleWolfenstein"
array_configs+=( server.cfg ) array_configs+=( server.cfg )
fn_fetch_default_config fn_fetch_default_config
fn_default_config_remote fn_default_config_remote
fn_set_config_vars fn_set_config_vars
elif [ "${gamename}" == "Rust" ]; then elif [ "${shortname}" == "rust" ]; then
gamedirname="Rust" gamedirname="Rust"
fn_check_cfgdir fn_check_cfgdir
array_configs+=( server.cfg ) array_configs+=( server.cfg )
fn_fetch_default_config fn_fetch_default_config
fn_default_config_remote fn_default_config_remote
elif [ "${gamename}" == "San Andreas Multiplayer" ]; then elif [ "${shortname}" == "samp" ]; then
gamedirname="SanAndreasMultiplayer" gamedirname="SanAndreasMultiplayer"
array_configs+=( server.cfg ) array_configs+=( server.cfg )
fn_fetch_default_config fn_fetch_default_config
fn_default_config_remote fn_default_config_remote
fn_set_config_vars fn_set_config_vars
elif [ "${gamename}" == "Serious Sam 3: BFE" ]; then elif [ "${shortname}" == "ss3" ]; then
gamedirname="SeriousSam3BFE" gamedirname="SeriousSam3BFE"
array_configs+=( server.ini ) array_configs+=( server.ini )
fn_fetch_default_config fn_fetch_default_config
fn_default_config_remote fn_default_config_remote
fn_set_config_vars fn_set_config_vars
elif [ "${gamename}" == "Soldat" ]; then elif [ "${shortname}" == "sol" ]; then
gamedirname="Soldat" gamedirname="Soldat"
array_configs+=( soldat.ini ) array_configs+=( soldat.ini )
fn_fetch_default_config fn_fetch_default_config
fn_default_config_remote fn_default_config_remote
fn_set_config_vars fn_set_config_vars
elif [ "${gamename}" == "Soldier Of Fortune 2: Gold Edition" ]; then elif [ "${shortname}" == "sof2" ]; then
gamedirname="SoldierOfFortune2Gold" gamedirname="SoldierOfFortune2Gold"
array_configs+=( server.cfg mapcycle.txt) array_configs+=( server.cfg mapcycle.txt)
fn_fetch_default_config fn_fetch_default_config
fn_default_config_remote fn_default_config_remote
fn_set_config_vars fn_set_config_vars
elif [ "${gamename}" == "SourceForts Classic" ]; then elif [ "${shortname}" == "sfc" ]; then
gamedirname="SourceFortsClassic" gamedirname="SourceFortsClassic"
array_configs+=( server.cfg ) array_configs+=( server.cfg )
fn_fetch_default_config fn_fetch_default_config
fn_default_config_remote fn_default_config_remote
fn_set_config_vars fn_set_config_vars
elif [ "${gamename}" == "Squad" ]; then elif [ "${shortname}" == "squad" ]; then
gamedirname="Squad" gamedirname="Squad"
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_fetch_default_config
fn_default_config_remote fn_default_config_remote
fn_set_config_vars fn_set_config_vars
elif [ "${gamename}" == "Starbound" ]; then elif [ "${shortname}" == "sb" ]; then
gamedirname="Starbound" gamedirname="Starbound"
array_configs+=( starbound_server.config ) array_configs+=( starbound_server.config )
fn_fetch_default_config fn_fetch_default_config
fn_default_config_remote fn_default_config_remote
fn_set_config_vars fn_set_config_vars
elif [ "${gamename}" == "Stationeers" ]; then elif [ "${shortname}" == "st" ]; then
gamedirname="Stationeers" gamedirname="Stationeers"
array_configs+=( default.ini ) array_configs+=( default.ini )
fn_fetch_default_config fn_fetch_default_config
fn_default_config_remote fn_default_config_remote
fn_set_config_vars fn_set_config_vars
elif [ "${gamename}" == "Sven Co-op" ]; then elif [ "${shortname}" == "sven" ]; then
gamedirname="SvenCoop" gamedirname="SvenCoop"
array_configs+=( server.cfg ) array_configs+=( server.cfg )
fn_fetch_default_config fn_fetch_default_config
fn_default_config_remote fn_default_config_remote
fn_set_config_vars fn_set_config_vars
elif [ "${gamename}" == "Team Fortress 2" ]; then elif [ "${shortname}" == "tf2" ]; then
gamedirname="TeamFortress2" gamedirname="TeamFortress2"
array_configs+=( server.cfg ) array_configs+=( server.cfg )
fn_fetch_default_config fn_fetch_default_config
fn_default_config_remote fn_default_config_remote
fn_set_config_vars fn_set_config_vars
elif [ "${gamename}" == "Team Fortress Classic" ]; then elif [ "${shortname}" == "tfc" ]; then
gamedirname="TeamFortressClassic" gamedirname="TeamFortressClassic"
array_configs+=( server.cfg ) array_configs+=( server.cfg )
fn_fetch_default_config fn_fetch_default_config
fn_default_config_remote fn_default_config_remote
fn_set_config_vars fn_set_config_vars
elif [ "${gamename}" == "The Specialists" ]; then elif [ "${shortname}" == "ts" ]; then
gamedirname="TheSpecialists" gamedirname="TheSpecialists"
array_configs+=( server.cfg ) array_configs+=( server.cfg )
fn_fetch_default_config fn_fetch_default_config
fn_default_config_remote fn_default_config_remote
fn_set_config_vars fn_set_config_vars
elif [ "${gamename}" == "TeamSpeak 3" ]; then elif [ "${shortname}" == "ts3" ]; then
gamedirname="TeamSpeak3" gamedirname="TeamSpeak3"
array_configs+=( ts3server.ini ) array_configs+=( ts3server.ini )
fn_fetch_default_config fn_fetch_default_config
fn_default_config_remote fn_default_config_remote
elif [ "${gamename}" == "Teeworlds" ]; then elif [ "${shortname}" == "tw" ]; then
gamedirname="Teeworlds" gamedirname="Teeworlds"
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_fetch_default_config
fn_default_config_remote fn_default_config_remote
fn_set_config_vars fn_set_config_vars
elif [ "${gamename}" == "Terraria" ]; then elif [ "${shortname}" == "terraria" ]; then
gamedirname="Terraria" gamedirname="Terraria"
array_configs+=( serverconfig.txt ) array_configs+=( serverconfig.txt )
fn_fetch_default_config fn_fetch_default_config
fn_default_config_remote fn_default_config_remote
fn_set_config_vars fn_set_config_vars
elif [ "${gamename}" == "Tower Unite" ]; then elif [ "${shortname}" == "tu" ]; then
gamedirname="TowerUnite" gamedirname="TowerUnite"
fn_check_cfgdir fn_check_cfgdir
array_configs+=( TowerServer.ini ) array_configs+=( TowerServer.ini )
fn_fetch_default_config fn_fetch_default_config
fn_default_config_remote fn_default_config_remote
fn_set_config_vars fn_set_config_vars
elif [ "${gamename}" == "Unreal Tournament" ]; then elif [ "${shortname}" == "ut" ]; then
gamedirname="UnrealTournament" gamedirname="UnrealTournament"
array_configs+=( Game.ini Engine.ini ) array_configs+=( Game.ini Engine.ini )
fn_fetch_default_config fn_fetch_default_config
fn_default_config_remote fn_default_config_remote
fn_set_config_vars fn_set_config_vars
elif [ "${gamename}" == "Unreal Tournament 2004" ]; then elif [ "${shortname}" == "ut2k4" ]; then
gamedirname="UnrealTournament2004" gamedirname="UnrealTournament2004"
array_configs+=( UT2004.ini ) array_configs+=( UT2004.ini )
fn_fetch_default_config fn_fetch_default_config
fn_default_config_remote fn_default_config_remote
fn_set_config_vars fn_set_config_vars
elif [ "${gamename}" == "Unreal Tournament 99" ]; then elif [ "${shortname}" == "ut99" ]; then
gamedirname="UnrealTournament99" gamedirname="UnrealTournament99"
array_configs+=( Default.ini ) array_configs+=( Default.ini )
fn_fetch_default_config fn_fetch_default_config
@ -663,31 +651,31 @@ elif [ "${shortname}" == "unt" ]; then
fn_fetch_default_config fn_fetch_default_config
fn_default_config_remote fn_default_config_remote
fn_set_config_vars fn_set_config_vars
elif [ "${gamename}" == "Vampire Slayer" ]; then elif [ "${shortname}" == "vs" ]; then
gamedirname="VampireSlayer" gamedirname="VampireSlayer"
array_configs+=( server.cfg ) array_configs+=( server.cfg )
fn_fetch_default_config fn_fetch_default_config
fn_default_config_remote fn_default_config_remote
fn_set_config_vars fn_set_config_vars
elif [ "${gamename}" == "Wolfenstein: Enemy Territory" ]; then elif [ "${shortname}" == "wet" ]; then
gamedirname="WolfensteinEnemyTerritory" gamedirname="WolfensteinEnemyTerritory"
array_configs+=( server.cfg ) array_configs+=( server.cfg )
fn_fetch_default_config fn_fetch_default_config
fn_default_config_remote fn_default_config_remote
fn_set_config_vars fn_set_config_vars
elif [ "${gamename}" == "Wurm Unlimited" ]; then elif [ "${shortname}" == "wurm" ]; then
gamedirname="WurmUnlimited" gamedirname="WurmUnlimited"
array_configs+=( server.cfg ) array_configs+=( server.cfg )
fn_fetch_default_config fn_fetch_default_config
fn_default_config_remote fn_default_config_remote
fn_set_config_vars fn_set_config_vars
elif [ "${gamename}" == "Zombie Master: Reborn" ]; then elif [ "${shortname}" == "zmr" ]; then
gamedirname="ZombieMasterReborn" gamedirname="ZombieMasterReborn"
array_configs+=( server.cfg ) array_configs+=( server.cfg )
fn_fetch_default_config fn_fetch_default_config
fn_default_config_remote fn_default_config_remote
fn_set_config_vars fn_set_config_vars
elif [ "${gamename}" == "Zombie Panic! Source" ]; then elif [ "${shortname}" == "zps" ]; then
gamedirname="ZombiePanicSource" gamedirname="ZombiePanicSource"
array_configs+=( server.cfg ) array_configs+=( server.cfg )
fn_fetch_default_config fn_fetch_default_config

2
lgsm/functions/install_server_files.sh

@ -72,7 +72,7 @@ fn_install_server_files_steamcmd(){
counter="0" counter="0"
while [ "${counter}" == "0" ]||[ "${exitcode}" != "0" ]; do while [ "${counter}" == "0" ]||[ "${exitcode}" != "0" ]; do
counter=$((counter+1)) counter=$((counter+1))
cd "${steamcmddir}" cd "${steamcmddir}" || exit
if [ "${counter}" -le "10" ]; then if [ "${counter}" -le "10" ]; then
# Attempt 1-4: Standard attempt. # Attempt 1-4: Standard attempt.
# Attempt 5-6: Validate attempt. # Attempt 5-6: Validate attempt.

4
lgsm/functions/logs.sh

@ -28,7 +28,7 @@ if [ "${status}" != "0" ]&&[ "${function_selfname}" == "command_start.sh" ]&&[ -
fi fi
# Log manager will start the cleanup if it finds logs older than "${logdays}". # Log manager will start the cleanup if it finds logs older than "${logdays}".
if [ $(find "${lgsmlogdir}"/ -type f -mtime +"${logdays}" | wc -l) -ne "0" ]; then if [ "$(find "${lgsmlogdir}"/ -type f -mtime +"${logdays}" | wc -l)" -ne "0" ]; then
fn_print_dots "Starting" fn_print_dots "Starting"
# Set common logs directories # Set common logs directories
commonlogs="${systemdir}/logs" commonlogs="${systemdir}/logs"
@ -81,7 +81,7 @@ if [ $(find "${lgsmlogdir}"/ -type f -mtime +"${logdays}" | wc -l) -ne "0" ]; th
find "${sourcemodlogdir}"/ -mtime +"${logdays}" -type f -exec rm -f {} \; find "${sourcemodlogdir}"/ -mtime +"${logdays}" -type f -exec rm -f {} \;
fi fi
# Garry's Mod logfiles. # Garry's Mod logfiles.
if [ "${gamename}" == "Garry's Mod" ]; then if [ "${shortname}" == "gmod" ]; then
# ULX logfiles. # ULX logfiles.
if [ -d "${ulxlogdir}" ]; then if [ -d "${ulxlogdir}" ]; then
find "${ulxlogdir}"/ -type f -mtime +"${logdays}" | tee >> "${lgsmlog}" find "${ulxlogdir}"/ -type f -mtime +"${logdays}" | tee >> "${lgsmlog}"

2
lgsm/functions/mods_core.sh

@ -43,7 +43,7 @@ fn_mod_lowercase(){
fileswc=$(find "${extractdir}" -depth | wc -l) fileswc=$(find "${extractdir}" -depth | wc -l)
echo -en "\r" echo -en "\r"
while read -r src; do while read -r src; do
dst=$(dirname "${src}"$(/)basename "${src}" | tr 'A-Z' 'a-z') dst="$(dirname "${src}$(/)basename" "${src}" | tr 'A-Z' 'a-z')"
if [ "${src}" != "${dst}" ] if [ "${src}" != "${dst}" ]
then then
[ ! -e "${dst}" ] && mv -T "${src}" "${dst}" || echo "${src} was not renamed" [ ! -e "${dst}" ] && mv -T "${src}" "${dst}" || echo "${src} was not renamed"

2
lgsm/functions/query_gamedig.sh

@ -10,7 +10,7 @@ if [ "$(command -v gamedig 2>/dev/null)" ]&&[ "$(command -v jq 2>/dev/null)" ];
if [ "${engine}" == "idtech3_ql" ]; then if [ "${engine}" == "idtech3_ql" ]; then
local engine="quakelive" local engine="quakelive"
elif [ "${gamename}" == "Killing Floor 2" ]; then elif [ "${shortname}" == "kf2" ]; then
local engine="unreal4" local engine="unreal4"
fi fi

2
linuxgsm.sh

@ -151,7 +151,7 @@ fn_install_menu_bash() {
while read -r line || [[ -n "${line}" ]]; do while read -r line || [[ -n "${line}" ]]; do
var=$(echo "${line}" | awk -F "," '{print $2 " - " $3}') var=$(echo "${line}" | awk -F "," '{print $2 " - " $3}')
menu_options+=( "${var}" ) menu_options+=( "${var}" )
done < ${options} done < "${options}"
menu_options+=( "Cancel" ) menu_options+=( "Cancel" )
select option in "${menu_options[@]}"; do select option in "${menu_options[@]}"; do
if [ -n "${option}" ]&&[ "${option}" != "Cancel" ]; then if [ -n "${option}" ]&&[ "${option}" != "Cancel" ]; then

2
tests/tests_fctrserver.sh

@ -162,7 +162,7 @@ fn_install_menu_bash() {
while read -r line || [[ -n "${line}" ]]; do while read -r line || [[ -n "${line}" ]]; do
var=$(echo "${line}" | awk -F "," '{print $2 " - " $3}') var=$(echo "${line}" | awk -F "," '{print $2 " - " $3}')
menu_options+=( "${var}" ) menu_options+=( "${var}" )
done < ${options} done < "${options}"
menu_options+=( "Cancel" ) menu_options+=( "Cancel" )
select option in "${menu_options[@]}"; do select option in "${menu_options[@]}"; do
if [ -n "${option}" ]&&[ "${option}" != "Cancel" ]; then if [ -n "${option}" ]&&[ "${option}" != "Cancel" ]; then

2
tests/tests_jc2server.sh

@ -160,7 +160,7 @@ fn_install_menu_bash() {
while read -r line || [[ -n "${line}" ]]; do while read -r line || [[ -n "${line}" ]]; do
var=$(echo "${line}" | awk -F "," '{print $2 " - " $3}') var=$(echo "${line}" | awk -F "," '{print $2 " - " $3}')
menu_options+=( "${var}" ) menu_options+=( "${var}" )
done < ${options} done < "${options}"
menu_options+=( "Cancel" ) menu_options+=( "Cancel" )
select option in "${menu_options[@]}"; do select option in "${menu_options[@]}"; do
if [ -n "${option}" ]&&[ "${option}" != "Cancel" ]; then if [ -n "${option}" ]&&[ "${option}" != "Cancel" ]; then

2
tests/tests_mcserver.sh

@ -160,7 +160,7 @@ fn_install_menu_bash() {
while read -r line || [[ -n "${line}" ]]; do while read -r line || [[ -n "${line}" ]]; do
var=$(echo "${line}" | awk -F "," '{print $2 " - " $3}') var=$(echo "${line}" | awk -F "," '{print $2 " - " $3}')
menu_options+=( "${var}" ) menu_options+=( "${var}" )
done < ${options} done < "${options}"
menu_options+=( "Cancel" ) menu_options+=( "Cancel" )
select option in "${menu_options[@]}"; do select option in "${menu_options[@]}"; do
if [ -n "${option}" ]&&[ "${option}" != "Cancel" ]; then if [ -n "${option}" ]&&[ "${option}" != "Cancel" ]; then

2
tests/tests_ts3server.sh

@ -160,7 +160,7 @@ fn_install_menu_bash() {
while read -r line || [[ -n "${line}" ]]; do while read -r line || [[ -n "${line}" ]]; do
var=$(echo "${line}" | awk -F "," '{print $2 " - " $3}') var=$(echo "${line}" | awk -F "," '{print $2 " - " $3}')
menu_options+=( "${var}" ) menu_options+=( "${var}" )
done < ${options} done < "${options}"
menu_options+=( "Cancel" ) menu_options+=( "Cancel" )
select option in "${menu_options[@]}"; do select option in "${menu_options[@]}"; do
if [ -n "${option}" ]&&[ "${option}" != "Cancel" ]; then if [ -n "${option}" ]&&[ "${option}" != "Cancel" ]; then

Loading…
Cancel
Save