@ -2,7 +2,6 @@
# LGSM fn_check function
# Author: Daniel Gibbs
# Website: http://gameservermanagers.com
lgsm_version="060116"
# Description: Overall function for managing checks.
# Runs checks that will either halt on or fix an issue.
# LGSM check_config.sh function
# Description: If server config missing warn user.
# LGSM check_ip.sh function
lgsm_version="271215"
# Description: Automatically identifies the server interface IP.
# If multiple interfaces are detected the user will need to manualy set using ip="0.0.0.0".
# LGSM check_logs.sh function
# Description: Checks that log files exist on server start
# LGSM check_root.sh function
# If you want to run as root (i.e. in Docker, or just because you hate security)
# set the following variable in your environment or config scripts.
# LGSM check_steamcmd.sh function
lgsm_version="281215"
# Description: Downloads SteamCMD on install and checks if missing before running functions that require SteamCMD
# LGSM check_steamuser.sh function
if [ "${steamuser}" == "username" ]; then
fn_printfailnl "Steam login not set. Update steamuser."
# LGSM check_systemdir.sh function
if [ ! -d "${systemdir}" ]; then
fn_printfailnl "Cannot access ${systemdir}: No such directory"
# LGSM check_tmux.sh function
# Checks if tmux is installed as too many users do not RTFM or know how to use Google.
# LGSM command_backup.sh function
# Description: Creates a .tar.gz file in the backup directory.
# LGSM command_console.sh function
# Description: Gives access to the server tmux console.
# LGSM command_debug.sh function
# Description: Runs the server without tmux. Runs direct from the terminal.
# LGSM command_details.sh function
# Description: Displays server infomation.
# LGSM dev_debug.sh function
function_selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
# LGSM fn_dep_detect function
# Description: Detects dependencies the server binary requires.
# LGSM command_email_test.sh function
# Description: Sends a test email notification.
# LGSM fn_install function
# LGSM command_monitor.sh function
# Description: Monitors server by checking for running proccesses
# then passes to monitor_gsquery.sh.
# LGSM command_start.sh function
lgsm_version="070116"
# Description: Starts the server.
# LGSM command_stop.sh function
# Description: Stops the server.
@ -3,7 +3,6 @@
# Contributor : UltimateByte
lgsm_version="080116"
# Description: Changes TS3 serveradmin password
# LGSM command_validate.sh function
# Description: Runs a server validation.
# LGSM compress_unreal2_maps.sh function
# LGSM compress_ut99_maps.sh function
lgsm_version="301215"
# LGSM core_functions.sh function
# Description: Defines all functions to allow download and execution of functions using fn_runfunction.
# This function is called first before any other function. Without this file other functions would not load.
# LGSM core_getopt.sh function
lgsm_version="300116"
# Description: getopt arguments.
# LGSM fn_messages function
# Description: Defines on-screen messages such as [ OK ] and how script logs look.
# LGSM email.sh function
# Description: Sends email notification if monitor picks up a failure.
# LGSM fix.sh function
lgsm_version="260116"
# Description: Overall function for managing fixes.
# Runs functions that will fix an issue.
# LGSM fix_arma3.sh function
# Fixes line 63: 20150 Segmentation fault (core dumped) #488
# LGSM fix_csgo.sh function
# Description: Resolves various issues with csgo.
# LGSM fix_dst.sh function
lgsm_version="020116"
# LGSM fix_glibc.sh function
fn_glibcfixmsg(){
echo ""
# LGSM fix_ins.sh function
lgsm_version="291215"
# Description: Resolves various issues with Insurgency.
# LGSM fix_kf.sh function
echo "Applying WebAdmin ROOst.css fix."
echo "http://forums.tripwireinteractive.com/showpost.php?p=585435&postcount=13"
# LGSM fix_ro.sh function
# LGSM fix_steamcmd.sh function
lgsm_version="010116"
# Description: fixes various issues related to steamCMD.
# LGSM fix_ut2k4.sh function
echo "applying WebAdmin ut2003.css fix."
# LGSM fix_ut99.sh function
echo "enabling UdpServerUplink."
{
# Description: Redirect to new core_functions.sh
# Description: Redirect to new core_getopt.sh
# LGSM update_functions.sh function
# Description: LEGACY FUNCTION Deletes the functions dir to allow re-downloading of functions from GitHub.
# LGSM game_settings.sh function
# Author: Jared Ballou
lgsm_version="180116"
local modulename="Settings"
# LGSM info_config.sh function
# Description: Gets specific details from config files.
# LGSM info_distro.sh function
# Description: Variables providing useful info on the Operating System such as disk and performace info.
# Used for command_details.sh, command_debug.sh and email.sh.
# LGSM info_glibc.sh function
# Description: stores details on servers Glibc requirements.
# LGSM info_ts3status.sh function
# Checks the status of Teamspeak 3.
# LGSM install_complete.sh function
if [ "${gamename}" == "Don't Starve Together" ]; then
# LGSM install_config.sh function
lgsm_version="100116"
fn_defaultconfig(){
echo "creating ${servercfg} config file."
# LGSM install_dl_ut2k4.sh function
echo "Downloading Server Files"
# LGSM install_dl_ut99.sh function
# LGSM install_gslt.sh function
# Description: Configures GSLT.
# LGSM install_gsquery.sh function
fn_dlgsquery(){
gsquery_path="${lgsmdir}/gsquery.py"
# LGSM install_header.sh function
clear
echo "================================="
# LGSM install_lgsm function
# Description: Display menu of available games and install the one selected
# LGSM install_logs.sh function
if [ "${checklogs}" != "1" ]; then
# LGSM install_retry.sh function
while true; do
read -e -i "y" -p "Retry install? [Y/n]" yn
# LGSM install_serverdir.sh function
echo "Server Directory"
# LGSM finstall_serverfiles.sh function
fn_steaminstallcommand(){
check.sh
@ -5,7 +5,6 @@
# This downloads and installs the latest stable versions of MetaMod and SourceMod
lgsm_version="200116"
# MetaMod
# LGSM install_steamcmd.sh function
# Description: Downloads SteamCMD on install.
# LGSM install_ts3.sh function
info_distro.sh
# Gets the teamspeak server architecture
# Contributor: PhilPhonic
fn_install_ts3db_mariadb(){
# LGSM install_ut2k4.sh function
echo "Installing ${gamename} Server"
# LGSM install_ut2k4_key.sh function
echo "Enter ${gamename} CD Key"
# LGSM install_ut99.sh function
# LGSM logs.sh function
# Description: Acts as a log rotater, removing old logs.
# Description: Display menus and return selection
# LGSM monitor_gsquery.sh function
# Description: uses gsquery.py to directly query the server.
# Detects if the server has frozen.
# LGSM update_check.sh function
# Description: Checks if a server update is available.
# LGSM update_dl.sh function
# Description: Runs a server update.
# Description: Deletes the functions dir to allow re-downloading of functions from GitHub.