147 changed files with 1222 additions and 1222 deletions
@ -1,21 +1,21 @@ |
|||||
#!/bin/bash |
#!/bin/bash |
||||
# LinuxGSM command_dev_clear_functions.sh module |
# LinuxGSM command_dev_clear_modules.sh module |
||||
# Author: Daniel Gibbs |
# Author: Daniel Gibbs |
||||
# Contributors: http://linuxgsm.com/contrib |
# Contributors: http://linuxgsm.com/contrib |
||||
# Website: https://linuxgsm.com |
# Website: https://linuxgsm.com |
||||
# Description: Deletes the contents of the functions dir. |
# Description: Deletes the contents of the modules dir. |
||||
|
|
||||
commandname="DEV-CLEAR-MODULES" |
commandname="DEV-CLEAR-MODULES" |
||||
commandaction="Clearing modules" |
commandaction="Clearing modules" |
||||
functionselfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")" |
moduleselfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")" |
||||
fn_firstcommand_set |
fn_firstcommand_set |
||||
|
|
||||
echo -e "=================================" |
echo -e "=================================" |
||||
echo -e "Clear Functions" |
echo -e "Clear Functions" |
||||
echo -e "=================================" |
echo -e "=================================" |
||||
echo -e "" |
echo -e "" |
||||
if fn_prompt_yn "Do you want to delete all functions?" Y; then |
if fn_prompt_yn "Do you want to delete all modules?" Y; then |
||||
rm -rfv "${functionsdir:?}/"* |
rm -rfv "${modulesdir:?}/"* |
||||
rm -rfv "${configdirdefault:?}/"* |
rm -rfv "${configdirdefault:?}/"* |
||||
fn_script_log_info "Cleared modules directory" |
fn_script_log_info "Cleared modules directory" |
||||
fn_script_log_info "Cleared default config directory" |
fn_script_log_info "Cleared default config directory" |
@ -1,806 +0,0 @@ |
|||||
#!/bin/bash |
|
||||
# LinuxGSM core_functions.sh module |
|
||||
# Author: Daniel Gibbs |
|
||||
# Contributors: http://linuxgsm.com/contrib |
|
||||
# Website: https://linuxgsm.com |
|
||||
# Description: Defines all functions to allow download and execution of functions using fn_fetch_function. |
|
||||
# This function is called first before any other function. Without this file other functions will not load. |
|
||||
|
|
||||
functionselfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")" |
|
||||
|
|
||||
modulesversion="v21.2.5" |
|
||||
|
|
||||
# Core |
|
||||
|
|
||||
core_dl.sh(){ |
|
||||
functionfile="${FUNCNAME[0]}" |
|
||||
if [ "$(type fn_fetch_core_dl 2>/dev/null)" ]; then |
|
||||
fn_fetch_core_dl "lgsm/functions" "core_dl.sh" "${functionsdir}" "chmodx" "run" "noforcedl" "nohash" |
|
||||
else |
|
||||
fn_bootstrap_fetch_file_github "lgsm/functions" "core_dl.sh" "${functionsdir}" "chmodx" "run" "noforcedl" "nohash" |
|
||||
fi |
|
||||
} |
|
||||
|
|
||||
core_messages.sh(){ |
|
||||
functionfile="${FUNCNAME[0]}" |
|
||||
if [ "$(type fn_fetch_core_dl 2>/dev/null)" ]; then |
|
||||
fn_fetch_core_dl "lgsm/functions" "core_messages.sh" "${functionsdir}" "chmodx" "run" "noforcedl" "nohash" |
|
||||
else |
|
||||
fn_bootstrap_fetch_file_github "lgsm/functions" "core_messages.sh" "${functionsdir}" "chmodx" "run" "noforcedl" "nohash" |
|
||||
fi |
|
||||
} |
|
||||
|
|
||||
core_legacy.sh(){ |
|
||||
functionfile="${FUNCNAME[0]}" |
|
||||
if [ "$(type fn_fetch_core_dl 2>/dev/null)" ]; then |
|
||||
fn_fetch_core_dl "lgsm/functions" "core_legacy.sh" "${functionsdir}" "chmodx" "run" "noforcedl" "nohash" |
|
||||
else |
|
||||
fn_bootstrap_fetch_file_github "lgsm/functions" "core_legacy.sh" "${functionsdir}" "chmodx" "run" "noforcedl" "nohash" |
|
||||
fi |
|
||||
} |
|
||||
|
|
||||
core_exit.sh(){ |
|
||||
functionfile="${FUNCNAME[0]}" |
|
||||
fn_fetch_function |
|
||||
} |
|
||||
|
|
||||
core_getopt.sh(){ |
|
||||
functionfile="${FUNCNAME[0]}" |
|
||||
fn_fetch_function |
|
||||
} |
|
||||
|
|
||||
core_trap.sh(){ |
|
||||
functionfile="${FUNCNAME[0]}" |
|
||||
fn_fetch_function |
|
||||
} |
|
||||
|
|
||||
core_steamcmd.sh(){ |
|
||||
functionfile="${FUNCNAME[0]}" |
|
||||
fn_fetch_function |
|
||||
} |
|
||||
|
|
||||
core_github.sh(){ |
|
||||
functionfile="${FUNCNAME[0]}" |
|
||||
fn_fetch_function |
|
||||
} |
|
||||
|
|
||||
# Commands |
|
||||
|
|
||||
command_backup.sh(){ |
|
||||
functionfile="${FUNCNAME[0]}" |
|
||||
fn_fetch_function |
|
||||
} |
|
||||
|
|
||||
command_console.sh(){ |
|
||||
functionfile="${FUNCNAME[0]}" |
|
||||
fn_fetch_function |
|
||||
} |
|
||||
|
|
||||
command_debug.sh(){ |
|
||||
functionfile="${FUNCNAME[0]}" |
|
||||
fn_fetch_function |
|
||||
} |
|
||||
|
|
||||
command_details.sh(){ |
|
||||
functionfile="${FUNCNAME[0]}" |
|
||||
fn_fetch_function |
|
||||
} |
|
||||
|
|
||||
command_donate.sh(){ |
|
||||
functionfile="${FUNCNAME[0]}" |
|
||||
fn_fetch_function |
|
||||
} |
|
||||
|
|
||||
command_postdetails.sh(){ |
|
||||
functionfile="${FUNCNAME[0]}" |
|
||||
fn_fetch_function |
|
||||
} |
|
||||
|
|
||||
command_test_alert.sh(){ |
|
||||
functionfile="${FUNCNAME[0]}" |
|
||||
fn_fetch_function |
|
||||
} |
|
||||
|
|
||||
command_monitor.sh(){ |
|
||||
functionfile="${FUNCNAME[0]}" |
|
||||
fn_fetch_function |
|
||||
} |
|
||||
|
|
||||
command_start.sh(){ |
|
||||
functionfile="${FUNCNAME[0]}" |
|
||||
fn_fetch_function |
|
||||
} |
|
||||
|
|
||||
command_stop.sh(){ |
|
||||
functionfile="${FUNCNAME[0]}" |
|
||||
fn_fetch_function |
|
||||
} |
|
||||
|
|
||||
command_validate.sh(){ |
|
||||
functionfile="${FUNCNAME[0]}" |
|
||||
fn_fetch_function |
|
||||
} |
|
||||
|
|
||||
command_install.sh(){ |
|
||||
functionfile="${FUNCNAME[0]}" |
|
||||
fn_fetch_function |
|
||||
} |
|
||||
|
|
||||
command_install_resources_mta.sh(){ |
|
||||
functionfile="${FUNCNAME[0]}" |
|
||||
fn_fetch_function |
|
||||
} |
|
||||
|
|
||||
install_squad_license.sh(){ |
|
||||
functionfile="${FUNCNAME[0]}" |
|
||||
fn_fetch_function |
|
||||
} |
|
||||
|
|
||||
command_mods_install.sh(){ |
|
||||
functionfile="${FUNCNAME[0]}" |
|
||||
fn_fetch_function |
|
||||
} |
|
||||
|
|
||||
command_mods_update.sh(){ |
|
||||
functionfile="${FUNCNAME[0]}" |
|
||||
fn_fetch_function |
|
||||
} |
|
||||
|
|
||||
command_mods_remove.sh(){ |
|
||||
functionfile="${FUNCNAME[0]}" |
|
||||
fn_fetch_function |
|
||||
} |
|
||||
|
|
||||
command_fastdl.sh(){ |
|
||||
functionfile="${FUNCNAME[0]}" |
|
||||
fn_fetch_function |
|
||||
} |
|
||||
|
|
||||
command_ts3_server_pass.sh(){ |
|
||||
functionfile="${FUNCNAME[0]}" |
|
||||
fn_fetch_function |
|
||||
} |
|
||||
|
|
||||
command_restart.sh(){ |
|
||||
functionfile="${FUNCNAME[0]}" |
|
||||
fn_fetch_function |
|
||||
} |
|
||||
|
|
||||
command_skeleton.sh(){ |
|
||||
functionfile="${FUNCNAME[0]}" |
|
||||
fn_fetch_function |
|
||||
} |
|
||||
|
|
||||
command_wipe.sh(){ |
|
||||
functionfile="${FUNCNAME[0]}" |
|
||||
fn_fetch_function |
|
||||
} |
|
||||
|
|
||||
command_send.sh(){ |
|
||||
functionfile="${FUNCNAME[0]}" |
|
||||
fn_fetch_function |
|
||||
} |
|
||||
|
|
||||
# Checks |
|
||||
|
|
||||
check.sh(){ |
|
||||
functionfile="${FUNCNAME[0]}" |
|
||||
fn_fetch_function |
|
||||
} |
|
||||
|
|
||||
check_config.sh(){ |
|
||||
functionfile="${FUNCNAME[0]}" |
|
||||
fn_fetch_function |
|
||||
} |
|
||||
|
|
||||
check_deps.sh(){ |
|
||||
functionfile="${FUNCNAME[0]}" |
|
||||
fn_fetch_function |
|
||||
} |
|
||||
|
|
||||
check_executable.sh(){ |
|
||||
functionfile="${FUNCNAME[0]}" |
|
||||
fn_fetch_function |
|
||||
} |
|
||||
|
|
||||
check_glibc.sh(){ |
|
||||
functionfile="${FUNCNAME[0]}" |
|
||||
fn_fetch_function |
|
||||
} |
|
||||
|
|
||||
check_ip.sh(){ |
|
||||
functionfile="${FUNCNAME[0]}" |
|
||||
fn_fetch_function |
|
||||
} |
|
||||
|
|
||||
check_last_update.sh(){ |
|
||||
functionfile="${FUNCNAME[0]}" |
|
||||
fn_fetch_function |
|
||||
} |
|
||||
|
|
||||
check_logs.sh(){ |
|
||||
functionfile="${FUNCNAME[0]}" |
|
||||
fn_fetch_function |
|
||||
} |
|
||||
|
|
||||
check_permissions.sh(){ |
|
||||
functionfile="${FUNCNAME[0]}" |
|
||||
fn_fetch_function |
|
||||
} |
|
||||
|
|
||||
check_root.sh(){ |
|
||||
functionfile="${FUNCNAME[0]}" |
|
||||
fn_fetch_function |
|
||||
} |
|
||||
|
|
||||
check_status.sh(){ |
|
||||
functionfile="${FUNCNAME[0]}" |
|
||||
fn_fetch_function |
|
||||
} |
|
||||
|
|
||||
check_steamcmd.sh(){ |
|
||||
functionfile="${FUNCNAME[0]}" |
|
||||
fn_fetch_function |
|
||||
} |
|
||||
|
|
||||
check_system_dir.sh(){ |
|
||||
functionfile="${FUNCNAME[0]}" |
|
||||
fn_fetch_function |
|
||||
} |
|
||||
|
|
||||
check_system_requirements.sh(){ |
|
||||
functionfile="${FUNCNAME[0]}" |
|
||||
fn_fetch_function |
|
||||
} |
|
||||
|
|
||||
check_tmuxception.sh(){ |
|
||||
functionfile="${FUNCNAME[0]}" |
|
||||
fn_fetch_function |
|
||||
} |
|
||||
|
|
||||
check_version.sh(){ |
|
||||
functionfile="${FUNCNAME[0]}" |
|
||||
fn_fetch_function |
|
||||
} |
|
||||
|
|
||||
# Compress |
|
||||
|
|
||||
compress_unreal2_maps.sh(){ |
|
||||
functionfile="${FUNCNAME[0]}" |
|
||||
fn_fetch_function |
|
||||
} |
|
||||
|
|
||||
compress_ut99_maps.sh(){ |
|
||||
functionfile="${FUNCNAME[0]}" |
|
||||
fn_fetch_function |
|
||||
} |
|
||||
|
|
||||
# Mods |
|
||||
|
|
||||
mods_list.sh(){ |
|
||||
functionfile="${FUNCNAME[0]}" |
|
||||
fn_fetch_function |
|
||||
} |
|
||||
|
|
||||
mods_core.sh(){ |
|
||||
functionfile="${FUNCNAME[0]}" |
|
||||
fn_fetch_function |
|
||||
} |
|
||||
|
|
||||
# Dev |
|
||||
|
|
||||
command_dev_clear_functions.sh(){ |
|
||||
functionfile="${FUNCNAME[0]}" |
|
||||
fn_fetch_function |
|
||||
} |
|
||||
|
|
||||
command_dev_debug.sh(){ |
|
||||
functionfile="${FUNCNAME[0]}" |
|
||||
fn_fetch_function |
|
||||
} |
|
||||
|
|
||||
command_dev_detect_deps.sh(){ |
|
||||
functionfile="${FUNCNAME[0]}" |
|
||||
fn_fetch_function |
|
||||
} |
|
||||
|
|
||||
command_dev_detect_glibc.sh(){ |
|
||||
functionfile="${FUNCNAME[0]}" |
|
||||
fn_fetch_function |
|
||||
} |
|
||||
|
|
||||
command_dev_detect_ldd.sh(){ |
|
||||
functionfile="${FUNCNAME[0]}" |
|
||||
fn_fetch_function |
|
||||
} |
|
||||
|
|
||||
command_dev_query_raw.sh(){ |
|
||||
functionfile="${FUNCNAME[0]}" |
|
||||
fn_fetch_function |
|
||||
} |
|
||||
|
|
||||
# Fix |
|
||||
|
|
||||
fix.sh(){ |
|
||||
functionfile="${FUNCNAME[0]}" |
|
||||
fn_fetch_function |
|
||||
} |
|
||||
|
|
||||
fix_ark.sh(){ |
|
||||
functionfile="${FUNCNAME[0]}" |
|
||||
fn_fetch_function |
|
||||
} |
|
||||
|
|
||||
fix_av.sh(){ |
|
||||
functionfile="${FUNCNAME[0]}" |
|
||||
fn_fetch_function |
|
||||
} |
|
||||
|
|
||||
fix_arma3.sh(){ |
|
||||
functionfile="${FUNCNAME[0]}" |
|
||||
fn_fetch_function |
|
||||
} |
|
||||
|
|
||||
fix_bo.sh(){ |
|
||||
functionfile="${FUNCNAME[0]}" |
|
||||
fn_fetch_function |
|
||||
} |
|
||||
|
|
||||
fix_cmw.sh(){ |
|
||||
functionfile="${FUNCNAME[0]}" |
|
||||
fn_fetch_function |
|
||||
} |
|
||||
|
|
||||
fix_csgo.sh(){ |
|
||||
functionfile="${FUNCNAME[0]}" |
|
||||
fn_fetch_function |
|
||||
} |
|
||||
|
|
||||
fix_dst.sh(){ |
|
||||
functionfile="${FUNCNAME[0]}" |
|
||||
fn_fetch_function |
|
||||
} |
|
||||
|
|
||||
fix_hw.sh(){ |
|
||||
functionfile="${FUNCNAME[0]}" |
|
||||
fn_fetch_function |
|
||||
} |
|
||||
|
|
||||
fix_ins.sh(){ |
|
||||
functionfile="${FUNCNAME[0]}" |
|
||||
fn_fetch_function |
|
||||
} |
|
||||
|
|
||||
fix_kf.sh(){ |
|
||||
functionfile="${FUNCNAME[0]}" |
|
||||
fn_fetch_function |
|
||||
} |
|
||||
|
|
||||
fix_kf2.sh(){ |
|
||||
functionfile="${FUNCNAME[0]}" |
|
||||
fn_fetch_function |
|
||||
} |
|
||||
|
|
||||
fix_lo.sh(){ |
|
||||
functionfile="${FUNCNAME[0]}" |
|
||||
fn_fetch_function |
|
||||
} |
|
||||
|
|
||||
fix_mcb.sh(){ |
|
||||
functionfile="${FUNCNAME[0]}" |
|
||||
fn_fetch_function |
|
||||
} |
|
||||
|
|
||||
fix_mta.sh(){ |
|
||||
functionfile="${FUNCNAME[0]}" |
|
||||
fn_fetch_function |
|
||||
} |
|
||||
|
|
||||
fix_nmrih.sh(){ |
|
||||
functionfile="${FUNCNAME[0]}" |
|
||||
fn_fetch_function |
|
||||
} |
|
||||
|
|
||||
fix_onset.sh(){ |
|
||||
functionfile="${FUNCNAME[0]}" |
|
||||
fn_fetch_function |
|
||||
} |
|
||||
|
|
||||
fix_ro.sh(){ |
|
||||
functionfile="${FUNCNAME[0]}" |
|
||||
fn_fetch_function |
|
||||
} |
|
||||
|
|
||||
fix_rust.sh(){ |
|
||||
functionfile="${FUNCNAME[0]}" |
|
||||
fn_fetch_function |
|
||||
} |
|
||||
|
|
||||
fix_rw.sh(){ |
|
||||
functionfile="${FUNCNAME[0]}" |
|
||||
fn_fetch_function |
|
||||
} |
|
||||
|
|
||||
fix_sfc.sh(){ |
|
||||
functionfile="${FUNCNAME[0]}" |
|
||||
fn_fetch_function |
|
||||
} |
|
||||
|
|
||||
fix_st.sh(){ |
|
||||
functionfile="${FUNCNAME[0]}" |
|
||||
fn_fetch_function |
|
||||
} |
|
||||
|
|
||||
fix_steamcmd.sh(){ |
|
||||
functionfile="${FUNCNAME[0]}" |
|
||||
fn_fetch_function |
|
||||
} |
|
||||
|
|
||||
fix_terraria.sh(){ |
|
||||
functionfile="${FUNCNAME[0]}" |
|
||||
fn_fetch_function |
|
||||
} |
|
||||
|
|
||||
fix_tf2.sh(){ |
|
||||
functionfile="${FUNCNAME[0]}" |
|
||||
fn_fetch_function |
|
||||
} |
|
||||
|
|
||||
fix_ut3.sh(){ |
|
||||
functionfile="${FUNCNAME[0]}" |
|
||||
fn_fetch_function |
|
||||
} |
|
||||
|
|
||||
fix_rust.sh(){ |
|
||||
functionfile="${FUNCNAME[0]}" |
|
||||
fn_fetch_function |
|
||||
} |
|
||||
|
|
||||
fix_samp.sh(){ |
|
||||
functionfile="${FUNCNAME[0]}" |
|
||||
fn_fetch_function |
|
||||
} |
|
||||
|
|
||||
fix_sdtd.sh(){ |
|
||||
functionfile="${FUNCNAME[0]}" |
|
||||
fn_fetch_function |
|
||||
} |
|
||||
|
|
||||
fix_sof2.sh(){ |
|
||||
functionfile="${FUNCNAME[0]}" |
|
||||
fn_fetch_function |
|
||||
} |
|
||||
|
|
||||
fix_squad.sh(){ |
|
||||
functionfile="${FUNCNAME[0]}" |
|
||||
fn_fetch_function |
|
||||
} |
|
||||
|
|
||||
fix_ts3.sh(){ |
|
||||
functionfile="${FUNCNAME[0]}" |
|
||||
fn_fetch_function |
|
||||
} |
|
||||
|
|
||||
fix_ut2k4.sh(){ |
|
||||
functionfile="${FUNCNAME[0]}" |
|
||||
fn_fetch_function |
|
||||
} |
|
||||
|
|
||||
fix_ut.sh(){ |
|
||||
functionfile="${FUNCNAME[0]}" |
|
||||
fn_fetch_function |
|
||||
} |
|
||||
|
|
||||
fix_unt.sh(){ |
|
||||
functionfile="${FUNCNAME[0]}" |
|
||||
fn_fetch_function |
|
||||
} |
|
||||
|
|
||||
fix_vh.sh(){ |
|
||||
functionfile="${FUNCNAME[0]}" |
|
||||
fn_fetch_function |
|
||||
} |
|
||||
|
|
||||
fix_wurm.sh(){ |
|
||||
functionfile="${FUNCNAME[0]}" |
|
||||
fn_fetch_function |
|
||||
} |
|
||||
|
|
||||
fix_zmr.sh(){ |
|
||||
functionfile="${FUNCNAME[0]}" |
|
||||
fn_fetch_function |
|
||||
} |
|
||||
|
|
||||
# Info |
|
||||
|
|
||||
info_distro.sh(){ |
|
||||
functionfile="${FUNCNAME[0]}" |
|
||||
fn_fetch_function |
|
||||
} |
|
||||
|
|
||||
info_game.sh(){ |
|
||||
functionfile="${FUNCNAME[0]}" |
|
||||
fn_fetch_function |
|
||||
} |
|
||||
|
|
||||
info_gamedig.sh(){ |
|
||||
functionfile="${FUNCNAME[0]}" |
|
||||
fn_fetch_function |
|
||||
} |
|
||||
|
|
||||
info_messages.sh(){ |
|
||||
functionfile="${FUNCNAME[0]}" |
|
||||
fn_fetch_function |
|
||||
} |
|
||||
|
|
||||
info_stats.sh(){ |
|
||||
functionfile="${FUNCNAME[0]}" |
|
||||
fn_fetch_function |
|
||||
} |
|
||||
|
|
||||
# Alert |
|
||||
|
|
||||
alert.sh(){ |
|
||||
functionfile="${FUNCNAME[0]}" |
|
||||
fn_fetch_function |
|
||||
} |
|
||||
|
|
||||
alert_discord.sh(){ |
|
||||
functionfile="${FUNCNAME[0]}" |
|
||||
fn_fetch_function |
|
||||
} |
|
||||
|
|
||||
alert_email.sh(){ |
|
||||
functionfile="${FUNCNAME[0]}" |
|
||||
fn_fetch_function |
|
||||
} |
|
||||
|
|
||||
alert_ifttt.sh(){ |
|
||||
functionfile="${FUNCNAME[0]}" |
|
||||
fn_fetch_function |
|
||||
} |
|
||||
|
|
||||
alert_mailgun.sh(){ |
|
||||
functionfile="${FUNCNAME[0]}" |
|
||||
fn_fetch_function |
|
||||
} |
|
||||
|
|
||||
alert_pushbullet.sh(){ |
|
||||
functionfile="${FUNCNAME[0]}" |
|
||||
fn_fetch_function |
|
||||
} |
|
||||
|
|
||||
alert_pushover.sh(){ |
|
||||
functionfile="${FUNCNAME[0]}" |
|
||||
fn_fetch_function |
|
||||
} |
|
||||
|
|
||||
alert_telegram.sh(){ |
|
||||
functionfile="${FUNCNAME[0]}" |
|
||||
fn_fetch_function |
|
||||
} |
|
||||
|
|
||||
alert_rocketchat.sh(){ |
|
||||
functionfile="${FUNCNAME[0]}" |
|
||||
fn_fetch_function |
|
||||
} |
|
||||
|
|
||||
alert_slack.sh(){ |
|
||||
functionfile="${FUNCNAME[0]}" |
|
||||
fn_fetch_function |
|
||||
} |
|
||||
# Logs |
|
||||
|
|
||||
core_logs.sh(){ |
|
||||
functionfile="${FUNCNAME[0]}" |
|
||||
fn_fetch_function |
|
||||
} |
|
||||
|
|
||||
# Query |
|
||||
|
|
||||
query_gamedig.sh(){ |
|
||||
functionfile="${FUNCNAME[0]}" |
|
||||
fn_fetch_function |
|
||||
} |
|
||||
|
|
||||
# Update |
|
||||
|
|
||||
command_update_functions.sh(){ |
|
||||
functionfile="${FUNCNAME[0]}" |
|
||||
fn_fetch_function |
|
||||
} |
|
||||
|
|
||||
command_update_linuxgsm.sh(){ |
|
||||
functionfile="${FUNCNAME[0]}" |
|
||||
fn_fetch_function |
|
||||
} |
|
||||
|
|
||||
command_update.sh(){ |
|
||||
functionfile="${FUNCNAME[0]}" |
|
||||
fn_fetch_function |
|
||||
} |
|
||||
|
|
||||
command_check_update.sh(){ |
|
||||
functionfile="${FUNCNAME[0]}" |
|
||||
fn_fetch_function |
|
||||
} |
|
||||
|
|
||||
update_ts3.sh(){ |
|
||||
functionfile="${FUNCNAME[0]}" |
|
||||
fn_fetch_function |
|
||||
} |
|
||||
|
|
||||
update_minecraft.sh(){ |
|
||||
functionfile="${FUNCNAME[0]}" |
|
||||
fn_fetch_function |
|
||||
} |
|
||||
|
|
||||
update_minecraft_bedrock.sh(){ |
|
||||
functionfile="${FUNCNAME[0]}" |
|
||||
fn_fetch_function |
|
||||
} |
|
||||
|
|
||||
update_papermc.sh(){ |
|
||||
functionfile="${FUNCNAME[0]}" |
|
||||
fn_fetch_function |
|
||||
} |
|
||||
|
|
||||
update_mumble.sh(){ |
|
||||
functionfile="${FUNCNAME[0]}" |
|
||||
fn_fetch_function |
|
||||
} |
|
||||
|
|
||||
update_mta.sh(){ |
|
||||
functionfile="${FUNCNAME[0]}" |
|
||||
fn_fetch_function |
|
||||
} |
|
||||
|
|
||||
update_factorio.sh(){ |
|
||||
functionfile="${FUNCNAME[0]}" |
|
||||
fn_fetch_function |
|
||||
} |
|
||||
|
|
||||
update_jediknight2.sh(){ |
|
||||
functionfile="${FUNCNAME[0]}" |
|
||||
fn_fetch_function |
|
||||
} |
|
||||
|
|
||||
update_steamcmd.sh(){ |
|
||||
functionfile="${FUNCNAME[0]}" |
|
||||
fn_fetch_function |
|
||||
} |
|
||||
|
|
||||
update_vintagestory.sh(){ |
|
||||
functionfile="${FUNCNAME[0]}" |
|
||||
fn_fetch_function |
|
||||
} |
|
||||
|
|
||||
fn_update_functions.sh(){ |
|
||||
functionfile="${FUNCNAME[0]}" |
|
||||
fn_fetch_function |
|
||||
} |
|
||||
|
|
||||
# |
|
||||
## Installer functions |
|
||||
# |
|
||||
|
|
||||
fn_autoinstall(){ |
|
||||
autoinstall=1 |
|
||||
command_install.sh |
|
||||
} |
|
||||
|
|
||||
install_complete.sh(){ |
|
||||
functionfile="${FUNCNAME[0]}" |
|
||||
fn_fetch_function |
|
||||
} |
|
||||
|
|
||||
install_config.sh(){ |
|
||||
functionfile="${FUNCNAME[0]}" |
|
||||
fn_fetch_function |
|
||||
} |
|
||||
|
|
||||
install_factorio_save.sh(){ |
|
||||
functionfile="${FUNCNAME[0]}" |
|
||||
fn_fetch_function |
|
||||
} |
|
||||
|
|
||||
install_dst_token.sh(){ |
|
||||
functionfile="${FUNCNAME[0]}" |
|
||||
fn_fetch_function |
|
||||
} |
|
||||
|
|
||||
install_eula.sh(){ |
|
||||
functionfile="${FUNCNAME[0]}" |
|
||||
fn_fetch_function |
|
||||
} |
|
||||
|
|
||||
install_gsquery.sh(){ |
|
||||
functionfile="${FUNCNAME[0]}" |
|
||||
fn_fetch_function |
|
||||
} |
|
||||
|
|
||||
install_gslt.sh(){ |
|
||||
functionfile="${FUNCNAME[0]}" |
|
||||
fn_fetch_function |
|
||||
} |
|
||||
|
|
||||
install_header.sh(){ |
|
||||
functionfile="${FUNCNAME[0]}" |
|
||||
fn_fetch_function |
|
||||
} |
|
||||
|
|
||||
install_logs.sh(){ |
|
||||
functionfile="${FUNCNAME[0]}" |
|
||||
fn_fetch_function |
|
||||
} |
|
||||
|
|
||||
install_retry.sh(){ |
|
||||
functionfile="${FUNCNAME[0]}" |
|
||||
fn_fetch_function |
|
||||
} |
|
||||
|
|
||||
install_server_dir.sh(){ |
|
||||
functionfile="${FUNCNAME[0]}" |
|
||||
fn_fetch_function |
|
||||
} |
|
||||
install_server_files.sh(){ |
|
||||
functionfile="${FUNCNAME[0]}" |
|
||||
fn_fetch_function |
|
||||
} |
|
||||
|
|
||||
install_stats.sh(){ |
|
||||
functionfile="${FUNCNAME[0]}" |
|
||||
fn_fetch_function |
|
||||
} |
|
||||
|
|
||||
install_steamcmd.sh(){ |
|
||||
functionfile="${FUNCNAME[0]}" |
|
||||
fn_fetch_function |
|
||||
} |
|
||||
|
|
||||
install_ts3.sh(){ |
|
||||
functionfile="${FUNCNAME[0]}" |
|
||||
fn_fetch_function |
|
||||
} |
|
||||
|
|
||||
install_ts3db.sh(){ |
|
||||
functionfile="${FUNCNAME[0]}" |
|
||||
fn_fetch_function |
|
||||
} |
|
||||
|
|
||||
install_ut2k4.sh(){ |
|
||||
functionfile="${FUNCNAME[0]}" |
|
||||
fn_fetch_function |
|
||||
} |
|
||||
|
|
||||
install_dl_ut2k4.sh(){ |
|
||||
functionfile="${FUNCNAME[0]}" |
|
||||
fn_fetch_function |
|
||||
} |
|
||||
|
|
||||
install_ut2k4_key.sh(){ |
|
||||
functionfile="${FUNCNAME[0]}" |
|
||||
fn_fetch_function |
|
||||
} |
|
||||
|
|
||||
# Calls code required for legacy servers |
|
||||
core_legacy.sh |
|
||||
|
|
||||
# Creates tmp dir if missing |
|
||||
if [ ! -d "${tmpdir}" ]; then |
|
||||
mkdir -p "${tmpdir}" |
|
||||
fi |
|
||||
|
|
||||
# Creates lock dir if missing |
|
||||
if [ ! -d "${lockdir}" ]; then |
|
||||
mkdir -p "${lockdir}" |
|
||||
fi |
|
||||
|
|
||||
# Calls on-screen messages (bootstrap) |
|
||||
core_messages.sh |
|
||||
|
|
||||
#Calls file downloader (bootstrap) |
|
||||
core_dl.sh |
|
||||
|
|
||||
# Calls the global Ctrl-C trap |
|
||||
core_trap.sh |
|
@ -0,0 +1,806 @@ |
|||||
|
#!/bin/bash |
||||
|
# LinuxGSM core_modules.sh module |
||||
|
# Author: Daniel Gibbs |
||||
|
# Contributors: http://linuxgsm.com/contrib |
||||
|
# Website: https://linuxgsm.com |
||||
|
# Description: Defines all modules to allow download and execution of modules using fn_fetch_module. |
||||
|
# This module is called first before any other module. Without this file other modules will not load. |
||||
|
|
||||
|
moduleselfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")" |
||||
|
|
||||
|
modulesversion="v21.2.5" |
||||
|
|
||||
|
# Core |
||||
|
|
||||
|
core_dl.sh(){ |
||||
|
modulefile="${FUNCNAME[0]}" |
||||
|
if [ "$(type fn_fetch_core_dl 2>/dev/null)" ]; then |
||||
|
fn_fetch_core_dl "lgsm/modules" "core_dl.sh" "${modulesdir}" "chmodx" "run" "noforcedl" "nohash" |
||||
|
else |
||||
|
fn_bootstrap_fetch_file_github "lgsm/modules" "core_dl.sh" "${modulesdir}" "chmodx" "run" "noforcedl" "nohash" |
||||
|
fi |
||||
|
} |
||||
|
|
||||
|
core_messages.sh(){ |
||||
|
modulefile="${FUNCNAME[0]}" |
||||
|
if [ "$(type fn_fetch_core_dl 2>/dev/null)" ]; then |
||||
|
fn_fetch_core_dl "lgsm/modules" "core_messages.sh" "${modulesdir}" "chmodx" "run" "noforcedl" "nohash" |
||||
|
else |
||||
|
fn_bootstrap_fetch_file_github "lgsm/modules" "core_messages.sh" "${modulesdir}" "chmodx" "run" "noforcedl" "nohash" |
||||
|
fi |
||||
|
} |
||||
|
|
||||
|
core_legacy.sh(){ |
||||
|
modulefile="${FUNCNAME[0]}" |
||||
|
if [ "$(type fn_fetch_core_dl 2>/dev/null)" ]; then |
||||
|
fn_fetch_core_dl "lgsm/modules" "core_legacy.sh" "${modulesdir}" "chmodx" "run" "noforcedl" "nohash" |
||||
|
else |
||||
|
fn_bootstrap_fetch_file_github "lgsm/modules" "core_legacy.sh" "${modulesdir}" "chmodx" "run" "noforcedl" "nohash" |
||||
|
fi |
||||
|
} |
||||
|
|
||||
|
core_exit.sh(){ |
||||
|
modulefile="${FUNCNAME[0]}" |
||||
|
fn_fetch_module |
||||
|
} |
||||
|
|
||||
|
core_getopt.sh(){ |
||||
|
modulefile="${FUNCNAME[0]}" |
||||
|
fn_fetch_module |
||||
|
} |
||||
|
|
||||
|
core_trap.sh(){ |
||||
|
modulefile="${FUNCNAME[0]}" |
||||
|
fn_fetch_module |
||||
|
} |
||||
|
|
||||
|
core_steamcmd.sh(){ |
||||
|
modulefile="${FUNCNAME[0]}" |
||||
|
fn_fetch_module |
||||
|
} |
||||
|
|
||||
|
core_github.sh(){ |
||||
|
modulefile="${FUNCNAME[0]}" |
||||
|
fn_fetch_module |
||||
|
} |
||||
|
|
||||
|
# Commands |
||||
|
|
||||
|
command_backup.sh(){ |
||||
|
modulefile="${FUNCNAME[0]}" |
||||
|
fn_fetch_module |
||||
|
} |
||||
|
|
||||
|
command_console.sh(){ |
||||
|
modulefile="${FUNCNAME[0]}" |
||||
|
fn_fetch_module |
||||
|
} |
||||
|
|
||||
|
command_debug.sh(){ |
||||
|
modulefile="${FUNCNAME[0]}" |
||||
|
fn_fetch_module |
||||
|
} |
||||
|
|
||||
|
command_details.sh(){ |
||||
|
modulefile="${FUNCNAME[0]}" |
||||
|
fn_fetch_module |
||||
|
} |
||||
|
|
||||
|
command_sponsor.sh(){ |
||||
|
modulefile="${FUNCNAME[0]}" |
||||
|
fn_fetch_module |
||||
|
} |
||||
|
|
||||
|
command_postdetails.sh(){ |
||||
|
modulefile="${FUNCNAME[0]}" |
||||
|
fn_fetch_module |
||||
|
} |
||||
|
|
||||
|
command_test_alert.sh(){ |
||||
|
modulefile="${FUNCNAME[0]}" |
||||
|
fn_fetch_module |
||||
|
} |
||||
|
|
||||
|
command_monitor.sh(){ |
||||
|
modulefile="${FUNCNAME[0]}" |
||||
|
fn_fetch_module |
||||
|
} |
||||
|
|
||||
|
command_start.sh(){ |
||||
|
modulefile="${FUNCNAME[0]}" |
||||
|
fn_fetch_module |
||||
|
} |
||||
|
|
||||
|
command_stop.sh(){ |
||||
|
modulefile="${FUNCNAME[0]}" |
||||
|
fn_fetch_module |
||||
|
} |
||||
|
|
||||
|
command_validate.sh(){ |
||||
|
modulefile="${FUNCNAME[0]}" |
||||
|
fn_fetch_module |
||||
|
} |
||||
|
|
||||
|
command_install.sh(){ |
||||
|
modulefile="${FUNCNAME[0]}" |
||||
|
fn_fetch_module |
||||
|
} |
||||
|
|
||||
|
command_install_resources_mta.sh(){ |
||||
|
modulefile="${FUNCNAME[0]}" |
||||
|
fn_fetch_module |
||||
|
} |
||||
|
|
||||
|
install_squad_license.sh(){ |
||||
|
modulefile="${FUNCNAME[0]}" |
||||
|
fn_fetch_module |
||||
|
} |
||||
|
|
||||
|
command_mods_install.sh(){ |
||||
|
modulefile="${FUNCNAME[0]}" |
||||
|
fn_fetch_module |
||||
|
} |
||||
|
|
||||
|
command_mods_update.sh(){ |
||||
|
modulefile="${FUNCNAME[0]}" |
||||
|
fn_fetch_module |
||||
|
} |
||||
|
|
||||
|
command_mods_remove.sh(){ |
||||
|
modulefile="${FUNCNAME[0]}" |
||||
|
fn_fetch_module |
||||
|
} |
||||
|
|
||||
|
command_fastdl.sh(){ |
||||
|
modulefile="${FUNCNAME[0]}" |
||||
|
fn_fetch_module |
||||
|
} |
||||
|
|
||||
|
command_ts3_server_pass.sh(){ |
||||
|
modulefile="${FUNCNAME[0]}" |
||||
|
fn_fetch_module |
||||
|
} |
||||
|
|
||||
|
command_restart.sh(){ |
||||
|
modulefile="${FUNCNAME[0]}" |
||||
|
fn_fetch_module |
||||
|
} |
||||
|
|
||||
|
command_skeleton.sh(){ |
||||
|
modulefile="${FUNCNAME[0]}" |
||||
|
fn_fetch_module |
||||
|
} |
||||
|
|
||||
|
command_wipe.sh(){ |
||||
|
modulefile="${FUNCNAME[0]}" |
||||
|
fn_fetch_module |
||||
|
} |
||||
|
|
||||
|
command_send.sh(){ |
||||
|
modulefile="${FUNCNAME[0]}" |
||||
|
fn_fetch_module |
||||
|
} |
||||
|
|
||||
|
# Checks |
||||
|
|
||||
|
check.sh(){ |
||||
|
modulefile="${FUNCNAME[0]}" |
||||
|
fn_fetch_module |
||||
|
} |
||||
|
|
||||
|
check_config.sh(){ |
||||
|
modulefile="${FUNCNAME[0]}" |
||||
|
fn_fetch_module |
||||
|
} |
||||
|
|
||||
|
check_deps.sh(){ |
||||
|
modulefile="${FUNCNAME[0]}" |
||||
|
fn_fetch_module |
||||
|
} |
||||
|
|
||||
|
check_executable.sh(){ |
||||
|
modulefile="${FUNCNAME[0]}" |
||||
|
fn_fetch_module |
||||
|
} |
||||
|
|
||||
|
check_glibc.sh(){ |
||||
|
modulefile="${FUNCNAME[0]}" |
||||
|
fn_fetch_module |
||||
|
} |
||||
|
|
||||
|
check_ip.sh(){ |
||||
|
modulefile="${FUNCNAME[0]}" |
||||
|
fn_fetch_module |
||||
|
} |
||||
|
|
||||
|
check_last_update.sh(){ |
||||
|
modulefile="${FUNCNAME[0]}" |
||||
|
fn_fetch_module |
||||
|
} |
||||
|
|
||||
|
check_logs.sh(){ |
||||
|
modulefile="${FUNCNAME[0]}" |
||||
|
fn_fetch_module |
||||
|
} |
||||
|
|
||||
|
check_permissions.sh(){ |
||||
|
modulefile="${FUNCNAME[0]}" |
||||
|
fn_fetch_module |
||||
|
} |
||||
|
|
||||
|
check_root.sh(){ |
||||
|
modulefile="${FUNCNAME[0]}" |
||||
|
fn_fetch_module |
||||
|
} |
||||
|
|
||||
|
check_status.sh(){ |
||||
|
modulefile="${FUNCNAME[0]}" |
||||
|
fn_fetch_module |
||||
|
} |
||||
|
|
||||
|
check_steamcmd.sh(){ |
||||
|
modulefile="${FUNCNAME[0]}" |
||||
|
fn_fetch_module |
||||
|
} |
||||
|
|
||||
|
check_system_dir.sh(){ |
||||
|
modulefile="${FUNCNAME[0]}" |
||||
|
fn_fetch_module |
||||
|
} |
||||
|
|
||||
|
check_system_requirements.sh(){ |
||||
|
modulefile="${FUNCNAME[0]}" |
||||
|
fn_fetch_module |
||||
|
} |
||||
|
|
||||
|
check_tmuxception.sh(){ |
||||
|
modulefile="${FUNCNAME[0]}" |
||||
|
fn_fetch_module |
||||
|
} |
||||
|
|
||||
|
check_version.sh(){ |
||||
|
modulefile="${FUNCNAME[0]}" |
||||
|
fn_fetch_module |
||||
|
} |
||||
|
|
||||
|
# Compress |
||||
|
|
||||
|
compress_unreal2_maps.sh(){ |
||||
|
modulefile="${FUNCNAME[0]}" |
||||
|
fn_fetch_module |
||||
|
} |
||||
|
|
||||
|
compress_ut99_maps.sh(){ |
||||
|
modulefile="${FUNCNAME[0]}" |
||||
|
fn_fetch_module |
||||
|
} |
||||
|
|
||||
|
# Mods |
||||
|
|
||||
|
mods_list.sh(){ |
||||
|
modulefile="${FUNCNAME[0]}" |
||||
|
fn_fetch_module |
||||
|
} |
||||
|
|
||||
|
mods_core.sh(){ |
||||
|
modulefile="${FUNCNAME[0]}" |
||||
|
fn_fetch_module |
||||
|
} |
||||
|
|
||||
|
# Dev |
||||
|
|
||||
|
command_dev_clear_modules.sh(){ |
||||
|
modulefile="${FUNCNAME[0]}" |
||||
|
fn_fetch_module |
||||
|
} |
||||
|
|
||||
|
command_dev_debug.sh(){ |
||||
|
modulefile="${FUNCNAME[0]}" |
||||
|
fn_fetch_module |
||||
|
} |
||||
|
|
||||
|
command_dev_detect_deps.sh(){ |
||||
|
modulefile="${FUNCNAME[0]}" |
||||
|
fn_fetch_module |
||||
|
} |
||||
|
|
||||
|
command_dev_detect_glibc.sh(){ |
||||
|
modulefile="${FUNCNAME[0]}" |
||||
|
fn_fetch_module |
||||
|
} |
||||
|
|
||||
|
command_dev_detect_ldd.sh(){ |
||||
|
modulefile="${FUNCNAME[0]}" |
||||
|
fn_fetch_module |
||||
|
} |
||||
|
|
||||
|
command_dev_query_raw.sh(){ |
||||
|
modulefile="${FUNCNAME[0]}" |
||||
|
fn_fetch_module |
||||
|
} |
||||
|
|
||||
|
# Fix |
||||
|
|
||||
|
fix.sh(){ |
||||
|
modulefile="${FUNCNAME[0]}" |
||||
|
fn_fetch_module |
||||
|
} |
||||
|
|
||||
|
fix_ark.sh(){ |
||||
|
modulefile="${FUNCNAME[0]}" |
||||
|
fn_fetch_module |
||||
|
} |
||||
|
|
||||
|
fix_av.sh(){ |
||||
|
modulefile="${FUNCNAME[0]}" |
||||
|
fn_fetch_module |
||||
|
} |
||||
|
|
||||
|
fix_arma3.sh(){ |
||||
|
modulefile="${FUNCNAME[0]}" |
||||
|
fn_fetch_module |
||||
|
} |
||||
|
|
||||
|
fix_bo.sh(){ |
||||
|
modulefile="${FUNCNAME[0]}" |
||||
|
fn_fetch_module |
||||
|
} |
||||
|
|
||||
|
fix_cmw.sh(){ |
||||
|
modulefile="${FUNCNAME[0]}" |
||||
|
fn_fetch_module |
||||
|
} |
||||
|
|
||||
|
fix_csgo.sh(){ |
||||
|
modulefile="${FUNCNAME[0]}" |
||||
|
fn_fetch_module |
||||
|
} |
||||
|
|
||||
|
fix_dst.sh(){ |
||||
|
modulefile="${FUNCNAME[0]}" |
||||
|
fn_fetch_module |
||||
|
} |
||||
|
|
||||
|
fix_hw.sh(){ |
||||
|
modulefile="${FUNCNAME[0]}" |
||||
|
fn_fetch_module |
||||
|
} |
||||
|
|
||||
|
fix_ins.sh(){ |
||||
|
modulefile="${FUNCNAME[0]}" |
||||
|
fn_fetch_module |
||||
|
} |
||||
|
|
||||
|
fix_kf.sh(){ |
||||
|
modulefile="${FUNCNAME[0]}" |
||||
|
fn_fetch_module |
||||
|
} |
||||
|
|
||||
|
fix_kf2.sh(){ |
||||
|
modulefile="${FUNCNAME[0]}" |
||||
|
fn_fetch_module |
||||
|
} |
||||
|
|
||||
|
fix_lo.sh(){ |
||||
|
modulefile="${FUNCNAME[0]}" |
||||
|
fn_fetch_module |
||||
|
} |
||||
|
|
||||
|
fix_mcb.sh(){ |
||||
|
modulefile="${FUNCNAME[0]}" |
||||
|
fn_fetch_module |
||||
|
} |
||||
|
|
||||
|
fix_mta.sh(){ |
||||
|
modulefile="${FUNCNAME[0]}" |
||||
|
fn_fetch_module |
||||
|
} |
||||
|
|
||||
|
fix_nmrih.sh(){ |
||||
|
modulefile="${FUNCNAME[0]}" |
||||
|
fn_fetch_module |
||||
|
} |
||||
|
|
||||
|
fix_onset.sh(){ |
||||
|
modulefile="${FUNCNAME[0]}" |
||||
|
fn_fetch_module |
||||
|
} |
||||
|
|
||||
|
fix_ro.sh(){ |
||||
|
modulefile="${FUNCNAME[0]}" |
||||
|
fn_fetch_module |
||||
|
} |
||||
|
|
||||
|
fix_rust.sh(){ |
||||
|
modulefile="${FUNCNAME[0]}" |
||||
|
fn_fetch_module |
||||
|
} |
||||
|
|
||||
|
fix_rw.sh(){ |
||||
|
modulefile="${FUNCNAME[0]}" |
||||
|
fn_fetch_module |
||||
|
} |
||||
|
|
||||
|
fix_sfc.sh(){ |
||||
|
modulefile="${FUNCNAME[0]}" |
||||
|
fn_fetch_module |
||||
|
} |
||||
|
|
||||
|
fix_st.sh(){ |
||||
|
modulefile="${FUNCNAME[0]}" |
||||
|
fn_fetch_module |
||||
|
} |
||||
|
|
||||
|
fix_steamcmd.sh(){ |
||||
|
modulefile="${FUNCNAME[0]}" |
||||
|
fn_fetch_module |
||||
|
} |
||||
|
|
||||
|
fix_terraria.sh(){ |
||||
|
modulefile="${FUNCNAME[0]}" |
||||
|
fn_fetch_module |
||||
|
} |
||||
|
|
||||
|
fix_tf2.sh(){ |
||||
|
modulefile="${FUNCNAME[0]}" |
||||
|
fn_fetch_module |
||||
|
} |
||||
|
|
||||
|
fix_ut3.sh(){ |
||||
|
modulefile="${FUNCNAME[0]}" |
||||
|
fn_fetch_module |
||||
|
} |
||||
|
|
||||
|
fix_rust.sh(){ |
||||
|
modulefile="${FUNCNAME[0]}" |
||||
|
fn_fetch_module |
||||
|
} |
||||
|
|
||||
|
fix_samp.sh(){ |
||||
|
modulefile="${FUNCNAME[0]}" |
||||
|
fn_fetch_module |
||||
|
} |
||||
|
|
||||
|
fix_sdtd.sh(){ |
||||
|
modulefile="${FUNCNAME[0]}" |
||||
|
fn_fetch_module |
||||
|
} |
||||
|
|
||||
|
fix_sof2.sh(){ |
||||
|
modulefile="${FUNCNAME[0]}" |
||||
|
fn_fetch_module |
||||
|
} |
||||
|
|
||||
|
fix_squad.sh(){ |
||||
|
modulefile="${FUNCNAME[0]}" |
||||
|
fn_fetch_module |
||||
|
} |
||||
|
|
||||
|
fix_ts3.sh(){ |
||||
|
modulefile="${FUNCNAME[0]}" |
||||
|
fn_fetch_module |
||||
|
} |
||||
|
|
||||
|
fix_ut2k4.sh(){ |
||||
|
modulefile="${FUNCNAME[0]}" |
||||
|
fn_fetch_module |
||||
|
} |
||||
|
|
||||
|
fix_ut.sh(){ |
||||
|
modulefile="${FUNCNAME[0]}" |
||||
|
fn_fetch_module |
||||
|
} |
||||
|
|
||||
|
fix_unt.sh(){ |
||||
|
modulefile="${FUNCNAME[0]}" |
||||
|
fn_fetch_module |
||||
|
} |
||||
|
|
||||
|
fix_vh.sh(){ |
||||
|
modulefile="${FUNCNAME[0]}" |
||||
|
fn_fetch_module |
||||
|
} |
||||
|
|
||||
|
fix_wurm.sh(){ |
||||
|
modulefile="${FUNCNAME[0]}" |
||||
|
fn_fetch_module |
||||
|
} |
||||
|
|
||||
|
fix_zmr.sh(){ |
||||
|
modulefile="${FUNCNAME[0]}" |
||||
|
fn_fetch_module |
||||
|
} |
||||
|
|
||||
|
# Info |
||||
|
|
||||
|
info_distro.sh(){ |
||||
|
modulefile="${FUNCNAME[0]}" |
||||
|
fn_fetch_module |
||||
|
} |
||||
|
|
||||
|
info_game.sh(){ |
||||
|
modulefile="${FUNCNAME[0]}" |
||||
|
fn_fetch_module |
||||
|
} |
||||
|
|
||||
|
info_gamedig.sh(){ |
||||
|
modulefile="${FUNCNAME[0]}" |
||||
|
fn_fetch_module |
||||
|
} |
||||
|
|
||||
|
info_messages.sh(){ |
||||
|
modulefile="${FUNCNAME[0]}" |
||||
|
fn_fetch_module |
||||
|
} |
||||
|
|
||||
|
info_stats.sh(){ |
||||
|
modulefile="${FUNCNAME[0]}" |
||||
|
fn_fetch_module |
||||
|
} |
||||
|
|
||||
|
# Alert |
||||
|
|
||||
|
alert.sh(){ |
||||
|
modulefile="${FUNCNAME[0]}" |
||||
|
fn_fetch_module |
||||
|
} |
||||
|
|
||||
|
alert_discord.sh(){ |
||||
|
modulefile="${FUNCNAME[0]}" |
||||
|
fn_fetch_module |
||||
|
} |
||||
|
|
||||
|
alert_email.sh(){ |
||||
|
modulefile="${FUNCNAME[0]}" |
||||
|
fn_fetch_module |
||||
|
} |
||||
|
|
||||
|
alert_ifttt.sh(){ |
||||
|
modulefile="${FUNCNAME[0]}" |
||||
|
fn_fetch_module |
||||
|
} |
||||
|
|
||||
|
alert_mailgun.sh(){ |
||||
|
modulefile="${FUNCNAME[0]}" |
||||
|
fn_fetch_module |
||||
|
} |
||||
|
|
||||
|
alert_pushbullet.sh(){ |
||||
|
modulefile="${FUNCNAME[0]}" |
||||
|
fn_fetch_module |
||||
|
} |
||||
|
|
||||
|
alert_pushover.sh(){ |
||||
|
modulefile="${FUNCNAME[0]}" |
||||
|
fn_fetch_module |
||||
|
} |
||||
|
|
||||
|
alert_telegram.sh(){ |
||||
|
modulefile="${FUNCNAME[0]}" |
||||
|
fn_fetch_module |
||||
|
} |
||||
|
|
||||
|
alert_rocketchat.sh(){ |
||||
|
modulefile="${FUNCNAME[0]}" |
||||
|
fn_fetch_module |
||||
|
} |
||||
|
|
||||
|
alert_slack.sh(){ |
||||
|
modulefile="${FUNCNAME[0]}" |
||||
|
fn_fetch_module |
||||
|
} |
||||
|
# Logs |
||||
|
|
||||
|
core_logs.sh(){ |
||||
|
modulefile="${FUNCNAME[0]}" |
||||
|
fn_fetch_module |
||||
|
} |
||||
|
|
||||
|
# Query |
||||
|
|
||||
|
query_gamedig.sh(){ |
||||
|
modulefile="${FUNCNAME[0]}" |
||||
|
fn_fetch_module |
||||
|
} |
||||
|
|
||||
|
# Update |
||||
|
|
||||
|
command_update_modules.sh(){ |
||||
|
modulefile="${FUNCNAME[0]}" |
||||
|
fn_fetch_module |
||||
|
} |
||||
|
|
||||
|
command_update_linuxgsm.sh(){ |
||||
|
modulefile="${FUNCNAME[0]}" |
||||
|
fn_fetch_module |
||||
|
} |
||||
|
|
||||
|
command_update.sh(){ |
||||
|
modulefile="${FUNCNAME[0]}" |
||||
|
fn_fetch_module |
||||
|
} |
||||
|
|
||||
|
command_check_update.sh(){ |
||||
|
modulefile="${FUNCNAME[0]}" |
||||
|
fn_fetch_module |
||||
|
} |
||||
|
|
||||
|
update_ts3.sh(){ |
||||
|
modulefile="${FUNCNAME[0]}" |
||||
|
fn_fetch_module |
||||
|
} |
||||
|
|
||||
|
update_minecraft.sh(){ |
||||
|
modulefile="${FUNCNAME[0]}" |
||||
|
fn_fetch_module |
||||
|
} |
||||
|
|
||||
|
update_minecraft_bedrock.sh(){ |
||||
|
modulefile="${FUNCNAME[0]}" |
||||
|
fn_fetch_module |
||||
|
} |
||||
|
|
||||
|
update_papermc.sh(){ |
||||
|
modulefile="${FUNCNAME[0]}" |
||||
|
fn_fetch_module |
||||
|
} |
||||
|
|
||||
|
update_mumble.sh(){ |
||||
|
modulefile="${FUNCNAME[0]}" |
||||
|
fn_fetch_module |
||||
|
} |
||||
|
|
||||
|
update_mta.sh(){ |
||||
|
modulefile="${FUNCNAME[0]}" |
||||
|
fn_fetch_module |
||||
|
} |
||||
|
|
||||
|
update_factorio.sh(){ |
||||
|
modulefile="${FUNCNAME[0]}" |
||||
|
fn_fetch_module |
||||
|
} |
||||
|
|
||||
|
update_jediknight2.sh(){ |
||||
|
modulefile="${FUNCNAME[0]}" |
||||
|
fn_fetch_module |
||||
|
} |
||||
|
|
||||
|
update_steamcmd.sh(){ |
||||
|
modulefile="${FUNCNAME[0]}" |
||||
|
fn_fetch_module |
||||
|
} |
||||
|
|
||||
|
update_vintagestory.sh(){ |
||||
|
modulefile="${FUNCNAME[0]}" |
||||
|
fn_fetch_module |
||||
|
} |
||||
|
|
||||
|
fn_update_modules.sh(){ |
||||
|
modulefile="${FUNCNAME[0]}" |
||||
|
fn_fetch_module |
||||
|
} |
||||
|
|
||||
|
# |
||||
|
## Installer modules |
||||
|
# |
||||
|
|
||||
|
fn_autoinstall(){ |
||||
|
autoinstall=1 |
||||
|
command_install.sh |
||||
|
} |
||||
|
|
||||
|
install_complete.sh(){ |
||||
|
modulefile="${FUNCNAME[0]}" |
||||
|
fn_fetch_module |
||||
|
} |
||||
|
|
||||
|
install_config.sh(){ |
||||
|
modulefile="${FUNCNAME[0]}" |
||||
|
fn_fetch_module |
||||
|
} |
||||
|
|
||||
|
install_factorio_save.sh(){ |
||||
|
modulefile="${FUNCNAME[0]}" |
||||
|
fn_fetch_module |
||||
|
} |
||||
|
|
||||
|
install_dst_token.sh(){ |
||||
|
modulefile="${FUNCNAME[0]}" |
||||
|
fn_fetch_module |
||||
|
} |
||||
|
|
||||
|
install_eula.sh(){ |
||||
|
modulefile="${FUNCNAME[0]}" |
||||
|
fn_fetch_module |
||||
|
} |
||||
|
|
||||
|
install_gsquery.sh(){ |
||||
|
modulefile="${FUNCNAME[0]}" |
||||
|
fn_fetch_module |
||||
|
} |
||||
|
|
||||
|
install_gslt.sh(){ |
||||
|
modulefile="${FUNCNAME[0]}" |
||||
|
fn_fetch_module |
||||
|
} |
||||
|
|
||||
|
install_header.sh(){ |
||||
|
modulefile="${FUNCNAME[0]}" |
||||
|
fn_fetch_module |
||||
|
} |
||||
|
|
||||
|
install_logs.sh(){ |
||||
|
modulefile="${FUNCNAME[0]}" |
||||
|
fn_fetch_module |
||||
|
} |
||||
|
|
||||
|
install_retry.sh(){ |
||||
|
modulefile="${FUNCNAME[0]}" |
||||
|
fn_fetch_module |
||||
|
} |
||||
|
|
||||
|
install_server_dir.sh(){ |
||||
|
modulefile="${FUNCNAME[0]}" |
||||
|
fn_fetch_module |
||||
|
} |
||||
|
install_server_files.sh(){ |
||||
|
modulefile="${FUNCNAME[0]}" |
||||
|
fn_fetch_module |
||||
|
} |
||||
|
|
||||
|
install_stats.sh(){ |
||||
|
modulefile="${FUNCNAME[0]}" |
||||
|
fn_fetch_module |
||||
|
} |
||||
|
|
||||
|
install_steamcmd.sh(){ |
||||
|
modulefile="${FUNCNAME[0]}" |
||||
|
fn_fetch_module |
||||
|
} |
||||
|
|
||||
|
install_ts3.sh(){ |
||||
|
modulefile="${FUNCNAME[0]}" |
||||
|
fn_fetch_module |
||||
|
} |
||||
|
|
||||
|
install_ts3db.sh(){ |
||||
|
modulefile="${FUNCNAME[0]}" |
||||
|
fn_fetch_module |
||||
|
} |
||||
|
|
||||
|
install_ut2k4.sh(){ |
||||
|
modulefile="${FUNCNAME[0]}" |
||||
|
fn_fetch_module |
||||
|
} |
||||
|
|
||||
|
install_dl_ut2k4.sh(){ |
||||
|
modulefile="${FUNCNAME[0]}" |
||||
|
fn_fetch_module |
||||
|
} |
||||
|
|
||||
|
install_ut2k4_key.sh(){ |
||||
|
modulefile="${FUNCNAME[0]}" |
||||
|
fn_fetch_module |
||||
|
} |
||||
|
|
||||
|
# Calls code required for legacy servers |
||||
|
core_legacy.sh |
||||
|
|
||||
|
# Creates tmp dir if missing |
||||
|
if [ ! -d "${tmpdir}" ]; then |
||||
|
mkdir -p "${tmpdir}" |
||||
|
fi |
||||
|
|
||||
|
# Creates lock dir if missing |
||||
|
if [ ! -d "${lockdir}" ]; then |
||||
|
mkdir -p "${lockdir}" |
||||
|
fi |
||||
|
|
||||
|
# Calls on-screen messages (bootstrap) |
||||
|
core_messages.sh |
||||
|
|
||||
|
#Calls file downloader (bootstrap) |
||||
|
core_dl.sh |
||||
|
|
||||
|
# Calls the global Ctrl-C trap |
||||
|
core_trap.sh |
Some files were not shown because too many files changed in this diff
Loading…
Reference in new issue