@ -1,8 +1,8 @@
#!/bin/bash
# LinuxGSM alert.sh module
# Author: Daniel Gibbs
# Website: https://linuxgsm.com
# Contributors: http://linuxgsm.com/contrib
# Description: Overall function for managing alerts.
functionselfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
# LinuxGSM alert_discord.sh module
# Description: Sends Discord alert.
# LinuxGSM alert_email.sh module
# Description: Sends email alert.
# LinuxGSM alert_ifttt.sh module
# Description: Sends IFTTT alert.
# LinuxGSM alert_mailgun.sh module
# Description: Sends Mailgun Email alert.
# LinuxGSM alert_pushbullet.sh module
# Description: Sends Pushbullet Messenger alert.
# LinuxGSM alert_pushover.sh module
# Description: Sends Pushover alert.
# LinuxGSM alert_rocketchat.sh module
# Description: Sends Rocketchat alert.
# LinuxGSM alert_slack.sh module
# Description: Sends Slack alert.
# LinuxGSM alert_telegram.sh module
# Description: Sends Telegram Messenger alert.
# LinuxGSM check.sh module
# Description: Overall function for managing checks.
# Runs checks that will either halt on or fix an issue.
# LinuxGSM check_config.sh module
# Description: Checks if the server config is missing and warns the user if needed.
# LinuxGSM check_deps.sh module
# Description: Checks if required dependencies are installed for LinuxGSM.
# LinuxGSM check_executable.sh module
# Description: Checks if server executable exists.
# LinuxGSM check_glibc.sh module
# Description: Checks if the server has the correct Glibc version.
# LinuxGSM check_ip.sh module
# Description: Automatically identifies the server interface IP.
# If multiple interfaces are detected the user will need to manually set using ip="0.0.0.0".
# LinuxGSM check_last_update.sh module
# Description: Checks lock file to see when last update happened.
# Will reboot server if instance not rebooted since update.
# LinuxGSM check_logs.sh module
# Description: Checks if log files exist.
# LinuxGSM check_permissions.sh
# Description: Checks ownership & permissions of scripts, files and directories.
# LinuxGSM check_root.sh module
# Description: Checks if the user tried to run the script as root.
# LinuxGSM check_status.sh module
# Description: Checks the process status of the server. Either online or offline.
# LinuxGSM check_steamcmd.sh module
# Description: Checks if SteamCMD is installed correctly.
# LinuxGSM check_system_dir.sh module
# Description: Checks if systemdir/serverfiles is accessible.
@ -1,9 +1,9 @@
# LinuxGSM check_system_requirements.sh
# Description: Checks RAM requirements
# Description: Checks RAM requirements.
# Description: Checks if run from tmux or screen
# Description: Checks if run from tmux or screen.
# LinuxGSM command_version.sh module
# Description: Will run update-lgsm if gameserver.sh and modules version does not match
# this will allow gameserver.sh to update - useful for multi instance servers.
# LinuxGSM command_backup.sh module
# Description: Creates a .tar.gz file in the backup directory.
commandname="BACKUP"
# LinuxGSM command_check_update.sh module
# Description: Handles updating of servers.
commandname="CHECK-UPDATE"
# LinuxGSM command_console.sh module
# Description: Gives access to the server tmux console.
commandname="CONSOLE"
# LinuxGSM command_debug.sh module
# Description: Runs the server without tmux and directly from the terminal.
commandname="DEBUG"
# LinuxGSM command_details.sh module
# Description: Displays server information.
commandname="DETAILS"
# LinuxGSM command_dev_clear_functions.sh module
# Description: Deletes the contents of the functions dir.
commandname="DEV-CLEAR-MODULES"
# LinuxGSM command_dev_debug.sh module
# Description: Dev only: Enables debugging log to be saved to dev-debug.log.
commandname="DEV-DEBUG"
# LinuxGSM command_dev_detect_deps.sh module
# Description: Detects dependencies the server binary requires.
commandname="DEV-DETECT-DEPS"
# LinuxGSM command_dev_detect_glibc.sh module
# Description: Automatically detects the version of GLIBC that is required.
# Can check a file or directory recursively.
# LinuxGSM command_dev_detect_ldd.sh module
# Description: Automatically detects required deps using ldd.
# LinuxGSM command_dev_query_raw.sh module
# Description: Raw gamedig output of the server.
commandname="DEV-QUERY-RAW"
# LinuxGSM command_donate.sh module
# Description: Shows ways to donate.
commandname="DONATE"
# LinuxGSM command_fastdl.sh module
# Description: Creates a FastDL directory.
commandname="FASTDL"
# LinuxGSM command_install.sh module
# Description: Overall function for the installer.
commandname="INSTALL"
# LinuxGSM command_install_resources_mta.sh module
# Description: Installs the default resources for Multi Theft Auto.
commandname="DEFAULT-RESOURCES"
# LinuxGSM command_mods_install.sh module
# Description: List and installs available mods along with mods_list.sh and mods_core.sh.
commandname="MODS-INSTALL"
# LinuxGSM command_mods_uninstall.sh module
# Description: Uninstall mods along with mods_list.sh and mods_core.sh.
commandname="MODS-REMOVE"
# LinuxGSM command_mods_update.sh module
# Description: Updates installed mods along with mods_list.sh and mods_core.sh.
commandname="MODS-UPDATE"
# LinuxGSM command_monitor.sh module
# Description: Monitors server by checking for running processes
# then passes to gamedig and gsquery.
# LinuxGSM command_postdetails.sh module
# Description: Strips sensitive information out of Details output
# Description: Strips sensitive information out of Details output.
commandname="POST-DETAILS"
commandaction="Posting details"
# LinuxGSM command_restart.sh module
# Description: Restarts the server.
# LinuxGSM command_skeleton.sh module
# Description: Creates an copy of a game servers directorys.
# LinuxGSM command_start.sh module
# Description: Starts the server.
commandname="START"
# LinuxGSM command_stop.sh module
# Description: Stops the server.
commandname="STOP"
# LinuxGSM command_test_alert.sh module
# Description: Sends a test alert.
commandname="TEST-ALERT"
# LinuxGSM command_ts3_server_pass.sh module
# Description: Changes TS3 serveradmin password.
commandname="CHANGE-PASSWORD"
# LinuxGSM command_update.sh module
commandname="UPDATE"
# LinuxGSM command_update_linuxgsm.sh module
# Description: Deletes the functions dir to allow re-downloading of functions from GitHub.
commandname="UPDATE-LGSM"
# LinuxGSM command_validate.sh module
# Description: Runs a server validation.
commandname="VALIDATE"
# Description: Wipes server data, useful after updates for some games like Rust
# Description: Wipes server data, useful after updates for some games like Rust.
commandname="WIPE"
commandaction="Wiping"
# LinuxGSM compress_unreal2_maps.sh module
# Description: Compresses unreal maps.
commandname="MAP-COMPRESSOR"
# LinuxGSM compress_ut99_maps.sh module
# LinuxGSM core_dl.sh module
# Description: Deals with all downloads for LinuxGSM.
# remote_fileurl: The URL of the file: http://example.com/dl/File.tar.bz2
# LinuxGSM core_exit.sh module
# Description: Handles exiting of LinuxGSM by running and reporting an exit code.
# LinuxGSM core_functions.sh module
# 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.
# LinuxGSM core_getopt.sh module
# Description: getopt arguments.
@ -1,6 +1,7 @@
# LinuxGSM core_github.sh function
# Author: Christian Birk
# Description: core function file for updates via github
# LinuxGSM core_legacy.sh module
# Description: Code for backwards compatability with older versions of LinuxGSM.
# LinuxGSM core_logs.sh module
# Description: Acts as a log rotator, removing old logs.
# LinuxGSM core_messages.sh module
# Description: Defines on-screen messages such as [ OK ] and how script logs look.
# LinuxGSM core_steamcmd.sh module
# Description: Core functions for SteamCMD
# LinuxGSM core_trap.sh module
# Description: Handles CTRL-C trap to give an exit code.
# LinuxGSM fix.sh module
# Description: Overall function for managing fixes.
# Runs functions that will fix an issue.
# LinuxGSM fix_ark.sh module
# Description: Resolves various issues with ARK: Survival Evolved.
# LinuxGSM fix_arma3.sh module
# Description: Resolves an issue with ARMA3.
# LinuxGSM fix_av.sh module
# Description: Resolves startup issue with Avorion
# LinuxGSM fix_hw.sh module
# Description: Resolves various issues with Ballistic Overkill.
# LinuxGSM fix_cmw.sh module
# Description: Resolves the issue of the not starting server on linux
if [ ! -f "${executabledir}/steam_appid.txt" ]; then
# LinuxGSM fix_csgo.sh module
# Description: Resolves various issues with CS:GO.
# LinuxGSM fix_dst.sh module
# Description: Resolves various issues with Don't Starve Together.
# Description: Resolves various issues with Hurtworld.
# LinuxGSM fix_ins.sh module
# Description: Resolves various issues with Insurgency.
# LinuxGSM fix_kf.sh module
# Description: Resolves various issues with Killing Floor.
# LinuxGSM fix_kf2.sh module
# Description: Resolves various issues with Killing Floor 2.
# LinuxGSM fix_mcb.sh module
# Description: Resolves possible startup issue with Minecraft Bedrock.
# LinuxGSM fix_mta.sh module
# Description: Installs the libmysqlclient for database functions on the server.
# LinuxGSM fix_nmrih.sh module
# Description: Create symlinks for renamed No More Room In Hell serverfiles.
# Solution from Steam Community post: https://steamcommunity.com/app/224260/discussions/2/1732089092441769414/
# LinuxGSM fix_onset.sh module
# Description: Resolves various issues with Onset.
# LinuxGSM fix_ro.sh module
# Description: Resolves various issues with Red Orchestra.
# LinuxGSM fix_rust.sh module
# Description: Resolves startup issue with Rust.
# LinuxGSM fix_rw.sh module
# Description: Resolves various issues with Rising World.
# LinuxGSM fix_sfc.sh module
# Description: Resolves issue that the default rcon password is not changed
# LinuxGSM fix_sdtd.sh module
# Description: Resolves various issues with 7 Days to Die.
# Description: Resolves various issues with Source Forts Classic.
# Description: Resolves various issues with Soldier of Fortune 2.
# LinuxGSM fix_squad.sh module
# Description: Resolves various issues with Squad.
# As the server base dir changed for the game, we need to migrate the default config from the old to the new location
# Description: Resolves startup issue with Stationeers.
# LinuxGSM fix_steamcmd.sh module
# Description: Resolves various issues related to SteamCMD.
# LinuxGSM fix_terraria.sh module
# Description: Resolves an issue with Terraria.
# LinuxGSM fix_tf2.sh module
# Description: Resolves various issues with Team Fortress 2.
# LinuxGSM fix_ts3.sh module
# Description: Resolves various issues with Teamspeak 3.
# Description: Resolves startup issue with Unturned.
# LinuxGSM fix_ut.sh module
# Description: Resolves various issues with Unreal Tournament.
# LinuxGSM fix_ut2k4.sh module
# Description: Resolves various issues with Unreal Tournament 2004.