diff --git a/Insurgency/cfg/servers/_default.cfg b/Insurgency/cfg/servers/_default.cfg index 5777a26cf..ddd24b525 100644 --- a/Insurgency/cfg/servers/_default.cfg +++ b/Insurgency/cfg/servers/_default.cfg @@ -9,7 +9,7 @@ defaultmode="checkpoint" email="email@example.com" emailnotification="off" # (on|off) ip="0.0.0.0" -lgsm_version="031115" +lgsm_version="061115" logdays="7" mapcyclefile="mapcycle.txt" maxplayers="16" diff --git a/Insurgency/insserver b/Insurgency/insserver index 852b6809d..8c2b5b013 100755 --- a/Insurgency/insserver +++ b/Insurgency/insserver @@ -3,22 +3,27 @@ # Server Management Script # Author: Daniel Gibbs # Website: http://gameservermanagers.com -version="031115" +version="061115" #### Variables #### +engine="source" +game="insurgency" +gamename="Insurgency" + +#File fetching settings +githubuser="jballou" +githubrepo="linuxgsm" +githubbranch="master" # The name of this script file, used to show the LGSM link properly selfname=$(basename $(readlink -f "${BASH_SOURCE[0]}")) +servicename="$(basename $0)" # Directories -rootdir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" +rootdir="$(dirname "${selfname}")" scriptcfgdir="${rootdir}/cfg/servers" # Settings to get before config parsing begins -engine="source" -game="insurgency" -gamename="Insurgency" -servicename="$(basename $0)" #ipaddr=$(ip addr | grep 'state UP' -A2 | tail -n1 | awk '{print $2}' | cut -f1 -d'/') @@ -30,58 +35,6 @@ cfg_instance="${scriptcfgdir}/${servicename}.cfg" #If config directory does not exist, create it if [ ! -e $scriptcfgdir ]; then mkdir -p "$scriptcfgdir"; fi -# If default config does not exist, create it. This should come from Git, and will be overwritten by updates. -# Rather than try to wget it from Github or other fancy ways to get it, the simplest way to ensure it works is to simply create it here. -fn_create_default_config(){ -cat <<'EOF' >> $cfg_default -# Default config - Changes will be overwritten by updates. -# Your settings for all servers go in _common.cfg -# Server-specific settings go into $SERVER.cfg -appid="237410" -beta="" #To enable beta, use " -beta beta" -clientport="27005" -defaultmap="ministry" -defaultmode="checkpoint" -email="email@example.com" -emailnotification="off" # (on|off) -ip="0.0.0.0" -lgsm_version="031115" -logdays="7" -mapcyclefile="mapcycle.txt" -maxplayers="16" -playlist="custom" -port="27015" -sourcetvport="27020" -srcds_parms="" -steampass="" -steamuser="anonymous" -updateonstart="off" -EOF -} -if [ ! -f $cfg_default ] -then - fn_create_default_config -fi - -# Load defaults -source $cfg_default - -#If defaults are from an older version, overwrite the file -if [ "${lgsm_version}" != "${version}" ]; then fn_create_default_config; fi - -# Load sitewide common settings (so that Git updates can safely overwrite default.cfg) -if [ ! -f $cfg_common ]; then touch $cfg_common; else source $cfg_common; fi - -# Load instance specific settings -if [ ! -f $cfg_instance ]; then touch $cfg_instance; else source $cfg_instance; fi - -# Set the paramaters to send to srcds -# https://developer.valvesoftware.com/wiki/Command_Line_Options#Source_Dedicated_Server -fn_parms(){ -#TODO: Put in some conditional logic to handle generating the parm string so we can make this a little less game specific -parms="-game ${game} -strictportbind -ip ${ip} -port ${port} +clientport ${clientport} +tv_port ${sourcetvport} +sv_playlist ${playlist} +mapcyclefile ${mapcyclefile}+servercfgfile ${servercfg} +map ${defaultmap} ${defaultmode} -maxplayers ${maxplayers} ${srcds_parms}" -} - #### Advanced Variables #### # Directories lockselfname=".${servicename}.lock" @@ -110,29 +63,71 @@ emaillog="${scriptlogdir}/${servicename}-email.log" scriptlogdate="${scriptlogdir}/${servicename}-script-$(date '+%d-%m-%Y-%H-%M-%S').log" consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%d-%m-%Y-%H-%M-%S').log" +# Set the paramaters to send to srcds +# https://developer.valvesoftware.com/wiki/Command_Line_Options#Source_Dedicated_Server +fn_parms(){ + #TODO: Put in some conditional logic to handle generating the parm string so we can make this a little less game specific + parms="-game ${game} -strictportbind -ip ${ip} -port ${port} -maxplayers ${maxplayers} ${srcds_parms} +clientport ${clientport} +tv_port ${sourcetvport} +sv_playlist ${playlist} +mapcyclefile ${mapcyclefile} +servercfgfile ${servercfg} +map ${defaultmap} ${defaultmode}" +} ##### Script ##### # Do not edit -fn_runfunction(){ -functiondir="${rootdir}/functions" -functionpath="${functiondir}/${functionfile}" -# Functions are downloaded and run with this function -if [ ! -f "${functionpath}" ]; then -# cd "${rootdir}" - if [ ! -d "${functiondir}" ]; then - mkdir -p "${functiondir}" +fn_getgithubfile() { + filename=$1 + exec=$2 + url=${3:-$filename} + filepath="${rootdir}/${filename}" + filedir=$(dirname "${filepath}") + + # If file is missing, then download + if [ ! -f "${filepath}" ] + then + download=1 + else + # Get the lgsm_version from the file, and download if out of date + script_version=$(grep lgsm_version "${filepath}" 2>&1 | cut -d'=' -f2 | sed -e 's/"//g') + if [ "${script_version}" != "" ] && [ "${script_version}" != "${version}" ] + then + echo $script_version + download=1 + fi + fi + if [ "$download" ] + then + if [ ! -d "${filedir}" ]; then + mkdir -p "${filedir}" + fi + echo -e " fetching ${filename}...\c" + wget -N /dev/null "https://raw.githubusercontent.com/${githubuser}/${githubrepo}/${githubbranch}/${url}" -O "${filepath}" 2>&1 | grep -F HTTP | cut -c45- + if [ "$exec" ] + then + chmod +x "${functionpath}" + fi fi - echo -e " loading ${functionfile}...\c" - wget -N /dev/null "https://raw.githubusercontent.com/dgibbs64/linuxgsm/master/functions/${functionfile}" -O "${functionpath}" 2>&1 | grep -F HTTP | cut -c45- - chmod +x "${functionpath}" -fi -source "${functionpath}" + if [ "$exec" ] + then + source "${filepath}" + fi +} + + +# If default config does not exist, create it. This should come from Git, and will be overwritten by updates. +fn_getgithubfile "cfg/servers/_default.cfg" 1 "${gamename}/cfg/servers/_default.cfg" + +# Load sitewide common settings (so that Git updates can safely overwrite default.cfg) +if [ ! -f $cfg_common ]; then touch $cfg_common; else source $cfg_common; fi + +# Load instance specific settings +if [ ! -f $cfg_instance ]; then touch $cfg_instance; else source $cfg_instance; fi + +fn_runfunction(){ + fn_getgithubfile "functions/${functionfile}" 1 } fn_functions(){ -# Functions are defined in fn_functions. -functionfile="${FUNCNAME}" -fn_runfunction + # Functions are defined in fn_functions. + functionfile="${FUNCNAME}" + fn_runfunction } fn_functions diff --git a/functions/fn_backup b/functions/fn_backup index 3d3f5a7a9..135c36df6 100644 --- a/functions/fn_backup +++ b/functions/fn_backup @@ -3,6 +3,8 @@ # Author: Daniel Gibbs # Website: http://gameservermanagers.com # Version: 311015 +lgsm_version="061115" + # Description: Creates a .tar.gz file in the backup directory. @@ -58,4 +60,4 @@ sleep 1 echo "" fn_printcompletenl "Complete." fn_scriptlog "Complete" -echo "" \ No newline at end of file +echo "" diff --git a/functions/fn_check_ip b/functions/fn_check_ip index 06ce0adc1..f146e341c 100644 --- a/functions/fn_check_ip +++ b/functions/fn_check_ip @@ -3,6 +3,8 @@ # Author: Daniel Gibbs # Website: http://gameservermanagers.com # Version: 311015 +lgsm_version="061115" + # 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". diff --git a/functions/fn_check_logs b/functions/fn_check_logs index 50ebfe824..73abbee76 100644 --- a/functions/fn_check_logs +++ b/functions/fn_check_logs @@ -3,6 +3,8 @@ # Author: Daniel Gibbs # Website: http://gameservermanagers.com # Version: 190515 +lgsm_version="061115" + # Description: Checks that log files exist on server start # Create dir's for the script and console logs @@ -13,4 +15,4 @@ if [ ! -d "${scriptlogdir}" ]; then echo -en "\n" checklogs=1 fn_install_logs -fi \ No newline at end of file +fi diff --git a/functions/fn_check_root b/functions/fn_check_root index 64ee2cca2..8502839e6 100644 --- a/functions/fn_check_root +++ b/functions/fn_check_root @@ -3,8 +3,10 @@ # Author: Daniel Gibbs # Website: http://gameservermanagers.com # Version: 311015 +lgsm_version="061115" + if [ $(whoami) = "root" ]; then fn_printfailnl "Do NOT run this script as root!" exit 1 -fi \ No newline at end of file +fi diff --git a/functions/fn_check_steamcmd b/functions/fn_check_steamcmd index fb5f19841..2ac62a1f0 100644 --- a/functions/fn_check_steamcmd +++ b/functions/fn_check_steamcmd @@ -3,6 +3,8 @@ # Author: Daniel Gibbs # Website: http://gameservermanagers.com # Version: 210115 +lgsm_version="061115" + # Description: Downloads SteamCMD on install and checks if missing before running functions that require SteamCMD diff --git a/functions/fn_check_steamuser b/functions/fn_check_steamuser index 264d7cb49..9e92abf23 100644 --- a/functions/fn_check_steamuser +++ b/functions/fn_check_steamuser @@ -3,6 +3,8 @@ # Author: Daniel Gibbs # Website: http://gameservermanagers.com # Version: 040715 +lgsm_version="061115" + if [ "${steamuser}" == "username" ]; then fn_printfailnl "Steam login not set. Update steamuser." diff --git a/functions/fn_check_systemdir b/functions/fn_check_systemdir index 47a3f4860..a6dae5ce5 100644 --- a/functions/fn_check_systemdir +++ b/functions/fn_check_systemdir @@ -3,8 +3,10 @@ # Author: Daniel Gibbs # Website: http://gameservermanagers.com # Version: 311015 +lgsm_version="061115" + if [ ! -e "${systemdir}" ]; then fn_printfailnl "Cannot access ${systemdir}: No such directory" exit 1 -fi \ No newline at end of file +fi diff --git a/functions/fn_check_tmux b/functions/fn_check_tmux index 49ab4f18d..64bd62e2a 100644 --- a/functions/fn_check_tmux +++ b/functions/fn_check_tmux @@ -3,6 +3,8 @@ # Author: Daniel Gibbs # Website: http://gameservermanagers.com # Version: 311015 +lgsm_version="061115" + # Checks if tmux is installed as too many users do not RTFM or know how to use Google. @@ -17,4 +19,4 @@ else echo " * Please see the the following link." echo " * http://gameservermanagers.com/tmux-not-found" exit 127 -fi \ No newline at end of file +fi diff --git a/functions/fn_check_ts3status b/functions/fn_check_ts3status index 40853019a..bc634573e 100644 --- a/functions/fn_check_ts3status +++ b/functions/fn_check_ts3status @@ -3,8 +3,10 @@ # Author: Daniel Gibbs # Website: http://gameservermanagers.com # Version: 070215 +lgsm_version="061115" + # Checks the status of Teamspeak 3. cd "${executabledir}" -ts3status=$(./ts3server_startscript.sh status servercfgfullpathfile=${servercfgfullpath}) \ No newline at end of file +ts3status=$(./ts3server_startscript.sh status servercfgfullpathfile=${servercfgfullpath}) diff --git a/functions/fn_compress_unreal2maps b/functions/fn_compress_unreal2maps index 00b35ae09..9cbcaf3d8 100644 --- a/functions/fn_compress_unreal2maps +++ b/functions/fn_compress_unreal2maps @@ -3,6 +3,8 @@ # Author: Daniel Gibbs # Website: http://gameservermanagers.com # Version: 311015 +lgsm_version="061115" + fn_check_root clear diff --git a/functions/fn_compress_ut99maps b/functions/fn_compress_ut99maps index 2f608c0a3..c80beeec8 100644 --- a/functions/fn_compress_ut99maps +++ b/functions/fn_compress_ut99maps @@ -3,6 +3,8 @@ # Author: Daniel Gibbs # Website: http://gameservermanagers.com # Version: 311015 +lgsm_version="061115" + fn_check_root clear diff --git a/functions/fn_console b/functions/fn_console index 38e055f3f..b790d6978 100644 --- a/functions/fn_console +++ b/functions/fn_console @@ -3,6 +3,8 @@ # Author: Daniel Gibbs # Website: http://gameservermanagers.com # Version: 311015 +lgsm_version="061115" + # Description: Gives access to the server tmux console. diff --git a/functions/fn_csgofix b/functions/fn_csgofix index abe9f9744..0d9fed1a0 100644 --- a/functions/fn_csgofix +++ b/functions/fn_csgofix @@ -3,6 +3,8 @@ # Author: Daniel Gibbs # Website: http://gameservermanagers.com # Version: 210115 +lgsm_version="061115" + # Description: Resolves various issues with csgo. diff --git a/functions/fn_debug b/functions/fn_debug index d303e6498..b0b9f712b 100644 --- a/functions/fn_debug +++ b/functions/fn_debug @@ -3,6 +3,8 @@ # Author: Daniel Gibbs # Website: http://gameservermanagers.com # Version: 311015 +lgsm_version="061115" + # Description: Runs the server without tmux. Runs direct from the terminal. diff --git a/functions/fn_deps_detect b/functions/fn_deps_detect index 9969603c0..e7c480321 100644 --- a/functions/fn_deps_detect +++ b/functions/fn_deps_detect @@ -3,6 +3,8 @@ # Author: Daniel Gibbs # Website: http://gameservermanagers.com # Version: 290615 +lgsm_version="061115" + # Description: Detects dependencies the server binary requires. diff --git a/functions/fn_details b/functions/fn_details index 845eafca4..74997460e 100644 --- a/functions/fn_details +++ b/functions/fn_details @@ -3,6 +3,8 @@ # Author: Daniel Gibbs # Website: http://gameservermanagers.com # Version: 301015 +lgsm_version="061115" + # Description: Displays server infomation. diff --git a/functions/fn_details_config b/functions/fn_details_config index 815153f23..027880d1b 100644 --- a/functions/fn_details_config +++ b/functions/fn_details_config @@ -3,6 +3,8 @@ # Author: Daniel Gibbs # Website: http://gameservermanagers.com # Version: 301015 +lgsm_version="061115" + # Description: Gets specific details from config files. diff --git a/functions/fn_details_distro b/functions/fn_details_distro index 4246d4a89..d159776ae 100644 --- a/functions/fn_details_distro +++ b/functions/fn_details_distro @@ -3,6 +3,8 @@ # Author: Daniel Gibbs # Website: http://gameservermanagers.com # Version: 301015 +lgsm_version="061115" + # Description: Variables providing useful info on the Operating System such as disk and performace info. # Used for fn_details, fn_debug and fn_email. diff --git a/functions/fn_details_glibc b/functions/fn_details_glibc index 3902990fa..dda44dd36 100644 --- a/functions/fn_details_glibc +++ b/functions/fn_details_glibc @@ -3,6 +3,8 @@ # Author: Daniel Gibbs # Website: http://gameservermanagers.com # Version: 180715 +lgsm_version="061115" + # Description: stores details on servers Glibc requirements. diff --git a/functions/fn_email b/functions/fn_email index e5ea2ed04..6359817b2 100644 --- a/functions/fn_email +++ b/functions/fn_email @@ -3,6 +3,8 @@ # Author: Daniel Gibbs # Website: http://gameservermanagers.com # Version: 290815 +lgsm_version="061115" + # Description: Sends email notification if monitor picks up a failure. diff --git a/functions/fn_email_test b/functions/fn_email_test index 0d7c8c9af..24676e905 100644 --- a/functions/fn_email_test +++ b/functions/fn_email_test @@ -3,6 +3,8 @@ # Author: Daniel Gibbs # Website: http://gameservermanagers.com # Version: 210115 +lgsm_version="061115" + # Description: Sends a test email notification. diff --git a/functions/fn_functions b/functions/fn_functions index a4f95ddf9..a17be6d58 100644 --- a/functions/fn_functions +++ b/functions/fn_functions @@ -3,6 +3,8 @@ # Author: Daniel Gibbs # Website: http://gameservermanagers.com # Version: 150715 +lgsm_version="061115" + # 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. diff --git a/functions/fn_getopt b/functions/fn_getopt index 20007fcd1..e9ed396b6 100644 --- a/functions/fn_getopt +++ b/functions/fn_getopt @@ -3,6 +3,8 @@ # Author: Daniel Gibbs # Website: http://gameservermanagers.com # Version: 011115 +lgsm_version="061115" + # Description: getopt arguments. diff --git a/functions/fn_insfix b/functions/fn_insfix index 85d695f57..d0df5da2e 100644 --- a/functions/fn_insfix +++ b/functions/fn_insfix @@ -3,6 +3,8 @@ # Author: Daniel Gibbs # Website: http://gameservermanagers.com # Version: 110415 +lgsm_version="061115" + # Description: Resolves ./srcds_linux: error while loading shared libraries: libtier0.so: cannot open shared object file: No such file or directory diff --git a/functions/fn_install b/functions/fn_install index 3f193015b..aa364a814 100644 --- a/functions/fn_install +++ b/functions/fn_install @@ -3,6 +3,8 @@ # Author: Daniel Gibbs # Website: http://gameservermanagers.com # Version: 190515 +lgsm_version="061115" + fn_check_root fn_install_header diff --git a/functions/fn_install_complete b/functions/fn_install_complete index f5b87625d..4c5d1433e 100644 --- a/functions/fn_install_complete +++ b/functions/fn_install_complete @@ -3,6 +3,8 @@ # Author: Daniel Gibbs # Website: http://gameservermanagers.com # Version: 070715 +lgsm_version="061115" + if [ "${gamename}" == "Dont Starve Together" ]; then echo "" diff --git a/functions/fn_install_config b/functions/fn_install_config index 1dfa75168..9bb98431e 100644 --- a/functions/fn_install_config +++ b/functions/fn_install_config @@ -3,6 +3,8 @@ # Author: Daniel Gibbs # Website: http://gameservermanagers.com # Version: 291015 +lgsm_version="061115" + fn_defaultconfig(){ echo "creating ${servercfg} config file." diff --git a/functions/fn_install_glibcfix b/functions/fn_install_glibcfix index 18f1b0840..06d4a8adc 100644 --- a/functions/fn_install_glibcfix +++ b/functions/fn_install_glibcfix @@ -3,6 +3,8 @@ # Author: Daniel Gibbs # Website: http://gameservermanagers.com # Version: 301015 +lgsm_version="061115" + fn_glibcfixmsg(){ echo "" diff --git a/functions/fn_install_gsquery b/functions/fn_install_gsquery index ca2647908..3c4e39e63 100644 --- a/functions/fn_install_gsquery +++ b/functions/fn_install_gsquery @@ -3,6 +3,8 @@ # Author: Daniel Gibbs # Website: http://gameservermanagers.com # Version: 070715 +lgsm_version="061115" + fn_dlgsquery(){ cd "${rootdir}" diff --git a/functions/fn_install_header b/functions/fn_install_header index f7c730a9c..46e257206 100644 --- a/functions/fn_install_header +++ b/functions/fn_install_header @@ -3,6 +3,8 @@ # Author: Daniel Gibbs # Website: http://gameservermanagers.com # Version: 210115 +lgsm_version="061115" + clear echo "=================================" diff --git a/functions/fn_install_kffix b/functions/fn_install_kffix index 634169b87..262f6f6a8 100644 --- a/functions/fn_install_kffix +++ b/functions/fn_install_kffix @@ -3,6 +3,8 @@ # Author: Daniel Gibbs # Website: http://gameservermanagers.com # Version: 150515 +lgsm_version="061115" + echo "Applying ${gamename} Server Fixes" echo "=================================" diff --git a/functions/fn_install_logs b/functions/fn_install_logs index a4e3c8562..7a5067546 100644 --- a/functions/fn_install_logs +++ b/functions/fn_install_logs @@ -3,6 +3,8 @@ # Author: Daniel Gibbs # Website: http://gameservermanagers.com # Version: 281015 +lgsm_version="061115" + if [ "${checklogs}" != "1" ]; then echo "" diff --git a/functions/fn_install_retry b/functions/fn_install_retry index 0f3117e21..3baefd2d7 100644 --- a/functions/fn_install_retry +++ b/functions/fn_install_retry @@ -3,6 +3,8 @@ # Author: Daniel Gibbs # Website: http://gameservermanagers.com # Version: 210115 +lgsm_version="061115" + while true; do read -p "Retry install? [y/N]" yn diff --git a/functions/fn_install_rofix b/functions/fn_install_rofix index 8e187d7ca..6be87979e 100644 --- a/functions/fn_install_rofix +++ b/functions/fn_install_rofix @@ -3,6 +3,8 @@ # Author: Daniel Gibbs # Website: http://gameservermanagers.com # Version: 150515 +lgsm_version="061115" + echo "Applying ${gamename} Server Fixes" echo "=================================" diff --git a/functions/fn_install_serverdir b/functions/fn_install_serverdir index db7692422..7717694e3 100644 --- a/functions/fn_install_serverdir +++ b/functions/fn_install_serverdir @@ -3,6 +3,8 @@ # Author: Daniel Gibbs # Website: http://gameservermanagers.com # Version: 240515 +lgsm_version="061115" + echo "" echo "Server Directory" diff --git a/functions/fn_install_serverfiles b/functions/fn_install_serverfiles index ffeeebdd1..0e10a6ba0 100644 --- a/functions/fn_install_serverfiles +++ b/functions/fn_install_serverfiles @@ -3,6 +3,8 @@ # Author: Daniel Gibbs # Website: http://gameservermanagers.com # Version: 040715 +lgsm_version="061115" + fn_steaminstallcommand(){ fn_check_steamuser diff --git a/functions/fn_install_steamcmd b/functions/fn_install_steamcmd index 852bd652e..21eea72c6 100644 --- a/functions/fn_install_steamcmd +++ b/functions/fn_install_steamcmd @@ -3,6 +3,8 @@ # Author: Daniel Gibbs # Website: http://gameservermanagers.com # Version: 210115 +lgsm_version="061115" + # Description: Downloads SteamCMD on install and checks if missing before running functions that require SteamCMD diff --git a/functions/fn_install_steamfix b/functions/fn_install_steamfix index 9dd88173d..d0e6228e6 100644 --- a/functions/fn_install_steamfix +++ b/functions/fn_install_steamfix @@ -3,6 +3,8 @@ # Author: Daniel Gibbs # Website: http://gameservermanagers.com # Version: 210115 +lgsm_version="061115" + fn_steamclientfix(){ echo "" diff --git a/functions/fn_install_ts3 b/functions/fn_install_ts3 index bde40acfe..ffea82014 100644 --- a/functions/fn_install_ts3 +++ b/functions/fn_install_ts3 @@ -3,6 +3,8 @@ # Author: Daniel Gibbs # Website: http://gameservermanagers.com # Version: 311015 +lgsm_version="061115" + fn_details_distro # Gets the teamspeak server architecture diff --git a/functions/fn_install_ut2k4 b/functions/fn_install_ut2k4 index 1571b7610..ff3b8c8da 100644 --- a/functions/fn_install_ut2k4 +++ b/functions/fn_install_ut2k4 @@ -3,6 +3,8 @@ # Author: Daniel Gibbs # Website: http://gameservermanagers.com # Version: 210115 +lgsm_version="061115" + echo "Installing ${gamename} Server" echo "=================================" diff --git a/functions/fn_install_ut2k4filesdl b/functions/fn_install_ut2k4filesdl index 91e743e32..412b32e02 100644 --- a/functions/fn_install_ut2k4filesdl +++ b/functions/fn_install_ut2k4filesdl @@ -3,6 +3,8 @@ # Author: Daniel Gibbs # Website: http://gameservermanagers.com # Version: 210115 +lgsm_version="061115" + echo "Downloading Server Files" echo "=================================" diff --git a/functions/fn_install_ut2k4fix b/functions/fn_install_ut2k4fix index 7d0859f1e..4963a93c5 100644 --- a/functions/fn_install_ut2k4fix +++ b/functions/fn_install_ut2k4fix @@ -3,6 +3,8 @@ # Author: Daniel Gibbs # Website: http://gameservermanagers.com # Version: 150515 +lgsm_version="061115" + echo "Applying ${gamename} Server Fixes" echo "=================================" diff --git a/functions/fn_install_ut2k4key b/functions/fn_install_ut2k4key index bf0307af0..8897fc628 100644 --- a/functions/fn_install_ut2k4key +++ b/functions/fn_install_ut2k4key @@ -3,6 +3,8 @@ # Author: Daniel Gibbs # Website: http://gameservermanagers.com # Version: 210115 +lgsm_version="061115" + echo "Enter ${gamename} CD Key" echo "=================================" diff --git a/functions/fn_install_ut99 b/functions/fn_install_ut99 index 399aef031..8f6647d9f 100644 --- a/functions/fn_install_ut99 +++ b/functions/fn_install_ut99 @@ -3,6 +3,8 @@ # Author: Daniel Gibbs # Website: http://gameservermanagers.com # Version: 210115 +lgsm_version="061115" + echo "Installing ${gamename} Server" echo "=================================" diff --git a/functions/fn_install_ut99filesdl b/functions/fn_install_ut99filesdl index 1ae92c090..8cbfa563e 100644 --- a/functions/fn_install_ut99filesdl +++ b/functions/fn_install_ut99filesdl @@ -3,6 +3,8 @@ # Author: Daniel Gibbs # Website: http://gameservermanagers.com # Version: 210115 +lgsm_version="061115" + echo "Downloading Server Files" echo "=================================" diff --git a/functions/fn_install_ut99fix b/functions/fn_install_ut99fix index e888f876b..d6bbe0c0a 100644 --- a/functions/fn_install_ut99fix +++ b/functions/fn_install_ut99fix @@ -3,6 +3,8 @@ # Author: Daniel Gibbs # Website: http://gameservermanagers.com # Version: 070215 +lgsm_version="061115" + echo "Applying ${gamename} Server Fixes" echo "=================================" diff --git a/functions/fn_logs b/functions/fn_logs index f3b3b0ef1..ed3ce4d69 100644 --- a/functions/fn_logs +++ b/functions/fn_logs @@ -3,6 +3,8 @@ # Author: Daniel Gibbs # Website: http://gameservermanagers.com # Version: 030715 +lgsm_version="061115" + # Description: Acts as a log rotater, removing old logs. diff --git a/functions/fn_messages b/functions/fn_messages index 173b42c80..5da35eea7 100644 --- a/functions/fn_messages +++ b/functions/fn_messages @@ -3,6 +3,8 @@ # Author: Daniel Gibbs # Website: http://gameservermanagers.com # Version: 260115 +lgsm_version="061115" + # Description: Defines on-screen messages such as [ OK ] and how script logs look. diff --git a/functions/fn_monitor b/functions/fn_monitor index 3978aa43d..3654ad604 100644 --- a/functions/fn_monitor +++ b/functions/fn_monitor @@ -3,6 +3,8 @@ # Author: Daniel Gibbs # Website: http://gameservermanagers.com # Version: 311015 +lgsm_version="061115" + # Description: Monitors server by checking for running proccesses # then passes to fn_monitor_query. diff --git a/functions/fn_monitor_query b/functions/fn_monitor_query index f56b6cf23..859c20d26 100644 --- a/functions/fn_monitor_query +++ b/functions/fn_monitor_query @@ -3,6 +3,8 @@ # Author: Daniel Gibbs # Website: http://gameservermanagers.com # Version: 311015 +lgsm_version="061115" + # Description: uses gsquery.py to directly query the server. # Detects if the server has frozen. diff --git a/functions/fn_start b/functions/fn_start index 66d9ae355..45f29942f 100644 --- a/functions/fn_start +++ b/functions/fn_start @@ -3,6 +3,8 @@ # Author: Daniel Gibbs # Website: http://gameservermanagers.com # Version: 301015 +lgsm_version="061115" + # Description: Starts the server. diff --git a/functions/fn_stop b/functions/fn_stop index c5c36c2b3..875b3e2a8 100644 --- a/functions/fn_stop +++ b/functions/fn_stop @@ -3,6 +3,8 @@ # Author: Daniel Gibbs # Website: http://gameservermanagers.com # Version: 261015 +lgsm_version="061115" + # Description: Stops the server. diff --git a/functions/fn_update_check b/functions/fn_update_check index 8ccda2105..10f04b855 100644 --- a/functions/fn_update_check +++ b/functions/fn_update_check @@ -3,6 +3,8 @@ # Author: Daniel Gibbs # Website: http://gameservermanagers.com # Version: 011115 +lgsm_version="061115" + # Description: Checks if a server update is available. diff --git a/functions/fn_update_dl b/functions/fn_update_dl index b22bc7d95..622b8a1a6 100644 --- a/functions/fn_update_dl +++ b/functions/fn_update_dl @@ -3,6 +3,8 @@ # Author: Daniel Gibbs # Website: http://gameservermanagers.com # Version: 311015 +lgsm_version="061115" + # Description: Runs a server update. diff --git a/functions/fn_update_functions b/functions/fn_update_functions index 731085485..ce3124d63 100644 --- a/functions/fn_update_functions +++ b/functions/fn_update_functions @@ -3,6 +3,8 @@ # Author: Daniel Gibbs # Website: http://gameservermanagers.com # Version: 190515 +lgsm_version="061115" + # Description: Deletes the functions dir to allow re-downloading of functions from GitHub. diff --git a/functions/fn_validate b/functions/fn_validate index 8ca411660..530f7cb12 100644 --- a/functions/fn_validate +++ b/functions/fn_validate @@ -3,6 +3,8 @@ # Author: Daniel Gibbs # Website: http://gameservermanagers.com # Version: 040715 +lgsm_version="061115" + # Description: Runs a server validation.