Просмотр исходного кода

Ditched lgsm_version as not used

added
local modulename="Function"
local function_selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"

to all functions
Daniel Gibbs 10 лет назад
Родитель
Сommit
b8f44749a0
75 измененных файлов с 124 добавлено и 144 удалено
  1. 3 2
      lgsm/functions/alert.sh
  2. 1 3
      lgsm/functions/alert_email.sh
  3. 1 2
      lgsm/functions/alert_pushbullet.sh
  4. 3 1
      lgsm/functions/check.sh
  5. 3 2
      lgsm/functions/check_config.sh
  6. 2 2
      lgsm/functions/check_deps.sh
  7. 3 2
      lgsm/functions/check_glibc.sh
  8. 3 2
      lgsm/functions/check_ip.sh
  9. 4 3
      lgsm/functions/check_logs.sh
  10. 3 2
      lgsm/functions/check_permissions.sh
  11. 3 1
      lgsm/functions/check_root.sh
  12. 3 2
      lgsm/functions/check_status.sh
  13. 2 2
      lgsm/functions/check_steamcmd.sh
  14. 4 3
      lgsm/functions/check_system_dir.sh
  15. 3 2
      lgsm/functions/check_tmux.sh
  16. 0 2
      lgsm/functions/command_backup.sh
  17. 0 2
      lgsm/functions/command_console.sh
  18. 0 2
      lgsm/functions/command_debug.sh
  19. 1 2
      lgsm/functions/command_details.sh
  20. 2 2
      lgsm/functions/command_dev_debug.sh
  21. 1 3
      lgsm/functions/command_dev_detect_deps.sh
  22. 0 2
      lgsm/functions/command_fastdl.sh
  23. 0 2
      lgsm/functions/command_install.sh
  24. 0 2
      lgsm/functions/command_monitor.sh
  25. 0 2
      lgsm/functions/command_restart.sh
  26. 0 2
      lgsm/functions/command_start.sh
  27. 0 2
      lgsm/functions/command_stop.sh
  28. 1 3
      lgsm/functions/command_test_alert.sh
  29. 2 4
      lgsm/functions/command_ts3_server_pass.sh
  30. 2 4
      lgsm/functions/command_update.sh
  31. 0 2
      lgsm/functions/command_update_functions.sh
  32. 0 2
      lgsm/functions/command_validate.sh
  33. 3 1
      lgsm/functions/compress_unreal2_maps.sh
  34. 2 1
      lgsm/functions/compress_ut99_maps.sh
  35. 0 2
      lgsm/functions/core_dl.sh
  36. 0 2
      lgsm/functions/core_exit.sh
  37. 1 3
      lgsm/functions/core_functions.sh
  38. 0 2
      lgsm/functions/core_getopt.sh
  39. 0 2
      lgsm/functions/core_messages.sh
  40. 0 2
      lgsm/functions/core_trap.sh
  41. 3 2
      lgsm/functions/fix.sh
  42. 4 1
      lgsm/functions/fix_arma3.sh
  43. 0 2
      lgsm/functions/fix_csgo.sh
  44. 3 2
      lgsm/functions/fix_dst.sh
  45. 3 2
      lgsm/functions/fix_glibc.sh
  46. 5 4
      lgsm/functions/fix_ins.sh
  47. 4 1
      lgsm/functions/fix_kf.sh
  48. 3 2
      lgsm/functions/fix_ro.sh
  49. 3 2
      lgsm/functions/fix_steamcmd.sh
  50. 3 2
      lgsm/functions/fix_ut2k4.sh
  51. 5 1
      lgsm/functions/fix_ut99.sh
  52. 5 2
      lgsm/functions/gsquery.py
  53. 2 2
      lgsm/functions/info_config.sh
  54. 1 2
      lgsm/functions/info_distro.sh
  55. 2 2
      lgsm/functions/info_glibc.sh
  56. 2 2
      lgsm/functions/info_parms.sh
  57. 1 1
      lgsm/functions/install_complete.sh
  58. 1 1
      lgsm/functions/install_config.sh
  59. 1 2
      lgsm/functions/install_gslt.sh
  60. 3 1
      lgsm/functions/install_gsquery.sh
  61. 1 1
      lgsm/functions/install_header.sh
  62. 1 1
      lgsm/functions/install_logs.sh
  63. 1 1
      lgsm/functions/install_retry.sh
  64. 1 1
      lgsm/functions/install_server_dir.sh
  65. 1 1
      lgsm/functions/install_server_files.sh
  66. 1 2
      lgsm/functions/install_steamcmd.sh
  67. 1 1
      lgsm/functions/install_ts3.sh
  68. 1 1
      lgsm/functions/install_ts3db.sh
  69. 1 1
      lgsm/functions/install_ut2k4_key.sh
  70. 1 2
      lgsm/functions/logs.sh
  71. 1 2
      lgsm/functions/monitor_gsquery.sh
  72. 0 2
      lgsm/functions/update_check.sh
  73. 0 2
      lgsm/functions/update_dl.sh
  74. 3 2
      lgsm/functions/update_steamcmd.sh
  75. 0 2
      lgsm/functions/update_ts3.sh

+ 3 - 2
lgsm/functions/alert.sh

@@ -2,10 +2,11 @@
 # LGSM alert.sh function
 # Author: Daniel Gibbs
 # Website: https://gameservermanagers.com
-lgsm_version="210516"
-
 # Description: Overall function for managing alerts.
 
+local modulename="Alert"
+local function_selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
+
 fn_alert_test(){
 	fn_script_log_info "Sending test alert"
 	alertsubject="LGSM - Test Alert - ${servername}"

+ 1 - 3
lgsm/functions/alert_email.sh

@@ -2,12 +2,10 @@
 # LGSM email.sh function
 # Author: Daniel Gibbs
 # Website: https://gameservermanagers.com
-lgsm_version="210516"
-
 # Description: Sends email alert if monitor picks up a failure.
 
 local modulename="Alert"
-
+local function_selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
 
 fn_details_email(){
 	#

+ 1 - 2
lgsm/functions/alert_pushbullet.sh

@@ -2,12 +2,11 @@
 # LGSM alert_pushbullet.sh function
 # Author: Daniel Gibbs
 # Website: https://gameservermanagers.com
-lgsm_version="210516"
-
 # Description: alerts using pushbullet.
 
 local modulename="Alert"
 local function_selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
+
 fn_print_dots "Sending Pushbullet alert"
 sleep 1
 

+ 3 - 1
lgsm/functions/check.sh

@@ -2,11 +2,13 @@
 # LGSM fn_check function
 # Author: Daniel Gibbs
 # Website: https://gameservermanagers.com
-lgsm_version="210516"
 
 # Description: Overall function for managing checks.
 # Runs checks that will either halt on or fix an issue.
 
+local modulename="Checking"
+local function_selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
+
 # Every command that requires checks just references check.sh
 # check.sh selects which checks to run by using arrays
 

+ 3 - 2
lgsm/functions/check_config.sh

@@ -2,10 +2,11 @@
 # LGSM check_config.sh function
 # Author: Daniel Gibbs
 # Website: https://gameservermanagers.com
-lgsm_version="210516"
-
 # Description: If server config missing warn user.
 
+local modulename="Checking"
+local function_selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
+
 if [ ! -e "${servercfgfullpath}" ]; then
 	if [ "${gamename}" != "Hurtworld" ]; then
 		fn_print_warn_nl "Config file missing!"

+ 2 - 2
lgsm/functions/check_deps.sh

@@ -2,10 +2,10 @@
 # LGSM check_deps.sh function
 # Author: Daniel Gibbs
 # Website: https://gameservermanagers.com
-lgsm_version="090616"
-
 # Description: Checks that the requires dependencies are installed for LGSM.
 
+local modulename="Checking"
+local function_selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
 
 fn_deps_detector(){
 	# Checks if dependency is missing

+ 3 - 2
lgsm/functions/check_glibc.sh

@@ -2,10 +2,11 @@
 # LGSM check_glibc.sh function
 # Author: Daniel Gibbs
 # Website: https://gameservermanagers.com
-lgsm_version="210516"
-
 # Description: Checks if server has correct glibc or has a fix available.
 
+local modulename="Checking"
+local function_selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
+
 info_glibc.sh
 info_distro.sh
 

+ 3 - 2
lgsm/functions/check_ip.sh

@@ -2,11 +2,12 @@
 # LGSM check_ip.sh function
 # Author: Daniel Gibbs
 # Website: https://gameservermanagers.com
-lgsm_version="210516"
-
 # 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".
 
+local modulename="Checking"
+local function_selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
+
 if [ "${gamename}" != "Teamspeak 3" ]; then
 	if [ ! -f "/bin/ip" ]; then
 		ipcommand="/sbin/ip"

+ 4 - 3
lgsm/functions/check_logs.sh

@@ -2,12 +2,13 @@
 # LGSM check_logs.sh function
 # Author: Daniel Gibbs
 # Website: https://gameservermanagers.com
-lgsm_version="210516"
-
 # Description: Checks that log files exist on server start
 
+local modulename="Checking"
+local function_selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
+
 # Create dir's for the script and console logs
-if [ ! -d "${scriptlogdir}" ]; then
+if [ ! -d "${scriptlogdir}" ]||[ ! -d "${consolelogdir}" ]; then
 	fn_print_dots "Checking for log files"
 	sleep 1
 	fn_print_info_nl "Checking for log files: Creating log files"

+ 3 - 2
lgsm/functions/check_permissions.sh

@@ -3,10 +3,11 @@
 # Author: Daniel Gibbs
 # Contributor: UltimateByte
 # Website: https://gameservermanagers.com
-lgsm_version="210516"
-
 # Description: Checks script, files and folders ownership and permissions.
 
+local modulename="Checking"
+local function_selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
+
 # Useful variables
 currentuser="$(whoami)"
 currentgroups="$(groups)"

+ 3 - 1
lgsm/functions/check_root.sh

@@ -2,7 +2,9 @@
 # LGSM check_root.sh function
 # Author: Daniel Gibbs
 # Website: https://gameservermanagers.com
-lgsm_version="210516"
+
+local modulename="Checking"
+local function_selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
 
 if [ $(whoami) = "root" ]; then
 	fn_print_fail_nl "Do NOT run this script as root!"

+ 3 - 2
lgsm/functions/check_status.sh

@@ -2,10 +2,11 @@
 # LGSM check_status function
 # Author: Daniel Gibbs
 # Website: https://gameservermanagers.com
-lgsm_version="210516"
-
 # Description: Checks the proccess status of the server. Either online or offline.
 
+local modulename="Checking"
+local function_selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
+
 if [ "${gamename}" == "Teamspeak 3" ]; then
 	# 1: Server is running
 	# 0: Server seems to have died

+ 2 - 2
lgsm/functions/check_steamcmd.sh

@@ -2,10 +2,10 @@
 # LGSM check_steamcmd.sh function
 # Author: Daniel Gibbs
 # Website: https://gameservermanagers.com
-lgsm_version="210516"
-
 # Description: Checks SteamCMD is installed and correct.
 
+local modulename="Checking"
+local function_selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
 
 fn_install_steamcmd(){
 	if [ ! -d "${steamcmddir}" ]; then

+ 4 - 3
lgsm/functions/check_system_dir.sh

@@ -2,13 +2,14 @@
 # LGSM check_system_dir.sh function
 # Author: Daniel Gibbs
 # Website: https://gameservermanagers.com
-lgsm_version="210516"
+
+local modulename="Checking"
+local function_selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
 
 if [ ! -d "${systemdir}" ]; then
 	fn_print_fail_nl "Cannot access ${systemdir}: No such directory"
 	if [ -d "${scriptlogdir}" ]; then
-		fn_script_log_failure "Cannot access ${systemdir}: No such directory."
+		fn_script_log_fatal "Cannot access ${systemdir}: No such directory."
 	fi
-	exitcode=1
 	core_exit.sh
 fi

+ 3 - 2
lgsm/functions/check_tmux.sh

@@ -2,9 +2,10 @@
 # LGSM check_tmux.sh function
 # Author: Daniel Gibbs
 # Website: https://gameservermanagers.com
-lgsm_version="210516"
+# Description: Checks if tmux is installed as too many users do not RTFM or know how to use Google.
 
-# Checks if tmux is installed as too many users do not RTFM or know how to use Google.
+local modulename="Checking"
+local function_selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
 
 if [ "$(command -v tmux)" ]||[ "$(which tmux >/dev/null 2>&1)" ]||[ -f "/usr/bin/tmux" ]||[ -f "/bin/tmux" ]; then
 	:

+ 0 - 2
lgsm/functions/command_backup.sh

@@ -2,8 +2,6 @@
 # LGSM command_backup.sh function
 # Author: Daniel Gibbs
 # Website: https://gameservermanagers.com
-lgsm_version="210516"
-
 # Description: Creates a .tar.gz file in the backup directory.
 
 local modulename="Backup"

+ 0 - 2
lgsm/functions/command_console.sh

@@ -2,8 +2,6 @@
 # LGSM command_console.sh function
 # Author: Daniel Gibbs
 # Website: https://gameservermanagers.com
-lgsm_version="210516"
-
 # Description: Gives access to the server tmux console.
 
 local modulename="Console"

+ 0 - 2
lgsm/functions/command_debug.sh

@@ -2,8 +2,6 @@
 # LGSM command_debug.sh function
 # Author: Daniel Gibbs
 # Website: https://gameservermanagers.com
-lgsm_version="210516"
-
 # Description: Runs the server without tmux. Runs direct from the terminal.
 
 local modulename="Debug"

+ 1 - 2
lgsm/functions/command_details.sh

@@ -2,10 +2,9 @@
 # LGSM command_details.sh function
 # Author: Daniel Gibbs
 # Website: https://gameservermanagers.com
-lgsm_version="190616"
-
 # Description: Displays server infomation.
 
+local modulename="Details"
 local function_selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
 
 # Standard Details

+ 2 - 2
lgsm/functions/command_dev_debug.sh

@@ -2,12 +2,12 @@
 # LGSM dev_debug.sh function
 # Author: Daniel Gibbs
 # Website: https://gameservermanagers.com
-lgsm_version="210516"
-
 # Description: Dev only: enables debuging log to be saved to dev-debug.log.
 
+local modulename="Dev Debug"
 local function_selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
 
+
 if [ -f ".dev-debug" ]; then
 	rm .dev-debug
 	fn_print_ok_nl "Disabled dev-debug"

+ 1 - 3
lgsm/functions/command_dev_detect_deps.sh

@@ -2,11 +2,9 @@
 # LGSM fn_dep_detect function
 # Author: Daniel Gibbs
 # Website: https://gameservermanagers.com
-lgsm_version="210516"
-
 # Description: Detects dependencies the server binary requires.
 
-local modulename="Backup"
+local modulename="Deps Detect"
 local function_selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
 
 check.sh

+ 0 - 2
lgsm/functions/command_fastdl.sh

@@ -3,8 +3,6 @@
 # Author: Daniel Gibbs
 # Contributor: UltimateByte
 # Website: https://gameservermanagers.com
-lgsm_version="060616"
-
 # Description: Creates a FastDL folder
 
 local modulename="FastDL"

+ 0 - 2
lgsm/functions/command_install.sh

@@ -2,8 +2,6 @@
 # LGSM fn_install function
 # Author: Daniel Gibbs
 # Website: https://gameservermanagers.com
-lgsm_version="210516"
-
 # Description: Overall function for the installer.
 
 local modulename="Install"

+ 0 - 2
lgsm/functions/command_monitor.sh

@@ -2,8 +2,6 @@
 # LGSM command_monitor.sh function
 # Author: Daniel Gibbs
 # Website: https://gameservermanagers.com
-lgsm_version="210516"
-
 # Description: Monitors server by checking for running proccesses
 # then passes to monitor_gsquery.sh.
 

+ 0 - 2
lgsm/functions/command_restart.sh

@@ -2,8 +2,6 @@
 # LGSM command_start.sh function
 # Author: Daniel Gibbs
 # Website: https://gameservermanagers.com
-lgsm_version="210516"
-
 # Description: Starts the server.
 
 local modulename="Restarting"

+ 0 - 2
lgsm/functions/command_start.sh

@@ -2,8 +2,6 @@
 # LGSM command_start.sh function
 # Author: Daniel Gibbs
 # Website: https://gameservermanagers.com
-lgsm_version="210516"
-
 # Description: Starts the server.
 
 local modulename="Starting"

+ 0 - 2
lgsm/functions/command_stop.sh

@@ -2,8 +2,6 @@
 # LGSM command_stop.sh function
 # Author: Daniel Gibbs
 # Website: https://gameservermanagers.com
-lgsm_version="050616"
-
 # Description: Stops the server.
 
 local modulename="Stopping"

+ 1 - 3
lgsm/functions/command_test_alert.sh

@@ -1,9 +1,7 @@
 #!/bin/bash
-# LGSM command_email_test.sh function
+# LGSM command_test_alert.sh function
 # Author: Daniel Gibbs
 # Website: https://gameservermanagers.com
-lgsm_version="210516"
-
 # Description: Sends a test email alert.
 
 local modulename="Alert"

+ 2 - 4
lgsm/functions/command_ts3_server_pass.sh

@@ -1,13 +1,11 @@
 #!/bin/bash
-# LGSM command_serveradmin_password.sh function
+# LGSM command_ts3_server_pass.sh function
 # Author: Daniel Gibbs
 # Contributor : UltimateByte
 # Website: https://gameservermanagers.com
-lgsm_version="210516"
-
 # Description: Changes TS3 serveradmin password
 
-local modulename="Change password"
+local modulename="TS3 Change Password"
 local function_selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
 
 

+ 2 - 4
lgsm/functions/command_update.sh

@@ -1,10 +1,8 @@
 #!/bin/bash
-# LGSM commanf_update.sh function
+# LGSM command_update.sh function
 # Author: Daniel Gibbs
 # Website: https://gameservermanagers.com
-lgsm_version="210516"
-
-# Description:Hangles updating of servers.
+# Description: Handles updating of servers.
 
 local modulename="Update"
 local function_selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"

+ 0 - 2
lgsm/functions/command_update_functions.sh

@@ -2,8 +2,6 @@
 # LGSM command_update_functions.sh function
 # Author: Daniel Gibbs
 # Website: https://gameservermanagers.com
-lgsm_version="210516"
-
 # Description: Deletes the functions dir to allow re-downloading of functions from GitHub.
 
 local modulename="Updating LGSM"

+ 0 - 2
lgsm/functions/command_validate.sh

@@ -2,8 +2,6 @@
 # LGSM command_validate.sh function
 # Author: Daniel Gibbs
 # Website: https://gameservermanagers.com
-lgsm_version="210516"
-
 # Description: Runs a server validation.
 
 local modulename="Validate"

+ 3 - 1
lgsm/functions/compress_unreal2_maps.sh

@@ -2,8 +2,9 @@
 # LGSM compress_unreal2_maps.sh function
 # Author: Daniel Gibbs
 # Website: https://gameservermanagers.com
-lgsm_version="210516"
+# Description: compresses unreal maps
 
+local modulename="Unreal Map Compressor"
 local function_selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
 
 check.sh
@@ -33,3 +34,4 @@ for map in "${filesdir}/Maps/"*; do
 	./ucc-bin compress "${map}" --nohomedir
 done
 mv -fv "${filesdir}/Maps/"*.ut2.uz2 "${compressedmapsdir}"
+core_exit.sh

+ 2 - 1
lgsm/functions/compress_ut99_maps.sh

@@ -2,8 +2,9 @@
 # LGSM compress_ut99_maps.sh function
 # Author: Daniel Gibbs
 # Website: https://gameservermanagers.com
-lgsm_version="210516"
+# Description: compresses unreal maps
 
+local modulename="Unreal Map Compressor"
 local function_selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
 
 check.sh

+ 0 - 2
lgsm/functions/core_dl.sh

@@ -2,8 +2,6 @@
 # LGSM core_dl.sh function
 # Author: Daniel Gibbs
 # Website: https://gameservermanagers.com
-lgsm_version="210516"
-
 # Description: Deals with all downloads for LGSM.
 
 # fileurl: The URL of the file: http://example.com/dl/File.tar.bz2

+ 0 - 2
lgsm/functions/core_exit.sh

@@ -2,8 +2,6 @@
 # LGSM core_exit.sh function
 # Author: Daniel Gibbs
 # Website: https://gameservermanagers.com
-lgsm_version="210516"
-
 # Description: handles exiting of LGSM by running and reporting an exit code.
 
 fn_exit_dev_debug(){

+ 1 - 3
lgsm/functions/core_functions.sh

@@ -2,10 +2,8 @@
 # LGSM core_functions.sh function
 # Author: Daniel Gibbs
 # Website: https://gameservermanagers.com
-lgsm_version="210516"
-
 # 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 would not load.
+# This function is called first before any other function. Without this file other functions will not load.
 
 # Code/functions for legacy servers
 

+ 0 - 2
lgsm/functions/core_getopt.sh

@@ -2,8 +2,6 @@
 # LGSM core_getopt.sh function
 # Author: Daniel Gibbs
 # Website: https://gameservermanagers.com
-lgsm_version="210516"
-
 # Description: getopt arguments.
 
 local function_selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"

+ 0 - 2
lgsm/functions/core_messages.sh

@@ -2,8 +2,6 @@
 # LGSM fn_messages function
 # Author: Daniel Gibbs
 # Website: https://gameservermanagers.com
-lgsm_version="210516"
-
 # Description: Defines on-screen messages such as [  OK  ] and how script logs look.
 
 # nl: new line: message is following by a new line

+ 0 - 2
lgsm/functions/core_trap.sh

@@ -2,8 +2,6 @@
 # LGSM core_trap.sh function
 # Author: Daniel Gibbs
 # Website: https://gameservermanagers.com
-lgsm_version="210516"
-
 # Description: handles ctrl-C trap to give an exitcode.
 
 fn_exit_trap(){

+ 3 - 2
lgsm/functions/fix.sh

@@ -2,11 +2,12 @@
 # LGSM fix.sh function
 # Author: Daniel Gibbs
 # Website: https://gameservermanagers.com
-lgsm_version="210516"
-
 # Description: Overall function for managing fixes.
 # Runs functions that will fix an issue.
 
+local modulename="Fix"
+local function_selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
+
 # Messages that are displayed for some fixes
 fn_fix_msg_start(){
 	fn_print_dots "Applying ${fixname} fix: ${gamename}"

+ 4 - 1
lgsm/functions/fix_arma3.sh

@@ -2,7 +2,10 @@
 # LGSM fix_arma3.sh function
 # Author: Daniel Gibbs
 # Website: https://gameservermanagers.com
-lgsm_version="240516"
+# Description: Resolves an issue with ARMA3.
+
+local modulename="Fix"
+local function_selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
 
 # Fixes: 20150 Segmentation fault (core dumped) error.
 if [ ! -d "${HOME}/.local/share/Arma 3" ]||[ ! -d "${HOME}/.local/share/Arma 3 - Other Profiles" ]; then

+ 0 - 2
lgsm/functions/fix_csgo.sh

@@ -2,8 +2,6 @@
 # LGSM fix_csgo.sh function
 # Author: Daniel Gibbs
 # Website: https://gameservermanagers.com
-lgsm_version="210516"
-
 # Description: Resolves various issues with csgo.
 
 # Fixes: server not always creating steam_appid.txt file.

+ 3 - 2
lgsm/functions/fix_dst.sh

@@ -2,10 +2,11 @@
 # LGSM fix_dst.sh function
 # Author: Daniel Gibbs
 # Website: https://gameservermanagers.com
-lgsm_version="210516"
-
 # Description: Resolves various issues with Dont Starve together.
 
+local modulename="Fix"
+local function_selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
+
 # Fixes: ./dontstarve_dedicated_server_nullrenderer: ./lib32/libcurl-gnutls.so.4: no version information available (required by ./dontstarve_dedicated_server_nullrenderer)
 # Issue only occures on CentOS as libcurl-gnutls.so.4 is called libcurl.so.4 on CentOS.
 if [ -f "/etc/redhat-release" ] && [ ! -f "${filesdir}/bin/lib32/libcurl-gnutls.so.4" ]; then

+ 3 - 2
lgsm/functions/fix_glibc.sh

@@ -2,10 +2,11 @@
 # LGSM fix_glibc.sh function
 # Author: Daniel Gibbs
 # Website: https://gameservermanagers.com
-lgsm_version="210516"
-
 # Description: Downloads required glibc files and applys teh glibc fix if required
 
+local modulename="Fix"
+local function_selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
+
 local libstdc_servers_array=( "ARMA 3" "Blade Symphony" "Garry's Mod" "Just Cause 2" )
 for libstdc_server in "${libstdc_servers_array[@]}"
 do

+ 5 - 4
lgsm/functions/fix_ins.sh

@@ -2,15 +2,16 @@
 # LGSM fix_ins.sh function
 # Author: Daniel Gibbs
 # Website: https://gameservermanagers.com
-lgsm_version="210516"
-
 # Description: Resolves various issues with Insurgency.
 
-# Resolves ./srcds_linux: error while loading shared libraries: libtier0.so: cannot open shared object file: No such file or directory
+local modulename="Fix"
+local function_selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
+
+# Fixes: ./srcds_linux: error while loading shared libraries: libtier0.so: cannot open shared object file: No such file or directory.
 
 export LD_LIBRARY_PATH=${filesdir}:${filesdir}/bin:${LD_LIBRARY_PATH}
 
-# fix for issue #529 - gamemode not passed to debug or start
+# Fixes: issue #529 - gamemode not passed to debug or start.
 
 if [ "${function_selfname}" == "command_debug.sh" ]; then
 	defaultmap="\"${defaultmap}\""

+ 4 - 1
lgsm/functions/fix_kf.sh

@@ -2,7 +2,10 @@
 # LGSM fix_kf.sh function
 # Author: Daniel Gibbs
 # Website: https://gameservermanagers.com
-lgsm_version="210516"
+# Description: Resolves various issues with Killing Floor.
+
+local modulename="Fix"
+local function_selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
 
 echo "Applying WebAdmin ROOst.css fix."
 echo "http://forums.tripwireinteractive.com/showpost.php?p=585435&postcount=13"

+ 3 - 2
lgsm/functions/fix_ro.sh

@@ -2,9 +2,10 @@
 # LGSM fix_ro.sh function
 # Author: Daniel Gibbs
 # Website: https://gameservermanagers.com
-lgsm_version="210516"
+# Description: Resolves various issues with Red Orchestra.
 
-# Description: Resolves various issues with red orchestra.
+local modulename="Fix"
+local function_selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
 
 echo "Applying WebAdmin ROOst.css fix."
 echo "http://forums.tripwireinteractive.com/showpost.php?p=585435&postcount=13"

+ 3 - 2
lgsm/functions/fix_steamcmd.sh

@@ -2,9 +2,10 @@
 # LGSM fix_steamcmd.sh function
 # Author: Daniel Gibbs
 # Website: https://gameservermanagers.com
-lgsm_version="210516"
+# Description: Resolves various issues related to steamCMD.
 
-# Description: fixes various issues related to steamCMD.
+local modulename="Fix"
+local function_selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
 
 # Fixes: [S_API FAIL] SteamAPI_Init() failed; unable to locate a running instance of Steam,or a local steamclient.so.
 if [ ! -f "${HOME}/.steam/sdk32/steamclient.so" ]; then

+ 3 - 2
lgsm/functions/fix_ut2k4.sh

@@ -2,9 +2,10 @@
 # LGSM fix_ut2k4.sh function
 # Author: Daniel Gibbs
 # Website: https://gameservermanagers.com
-lgsm_version="210516"
+# Description: Resolves various issues with Unreal Tournament 2004.
 
-# Description: Resolves various issues with unreal tournament 2004.
+local modulename="Fix"
+local function_selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
 
 echo "applying WebAdmin ut2003.css fix."
 echo "http://forums.tripwireinteractive.com/showpost.php?p=585435&postcount=13"

+ 5 - 1
lgsm/functions/fix_ut99.sh

@@ -2,7 +2,11 @@
 # LGSM fix_ut99.sh function
 # Author: Daniel Gibbs
 # Website: https://gameservermanagers.com
-lgsm_version="210516"
+# Description: Resolves various issues with Unreal Tournament 99.
+
+local modulename="Fix"
+local function_selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
+
 echo "${servercfgfullpath}"
 echo "enabling UdpServerUplink."
 {

+ 5 - 2
lgsm/functions/gsquery.py

@@ -2,8 +2,11 @@
 # -*- coding: utf-8 -*-
 # Game Server Query
 # Author: Anonymous & Daniel Gibbs
-# # Website: https://gameservermanagers.com
-# Version: 190216
+# Website: https://gameservermanagers.com
+# Description: Handles querying of .
+
+local modulename="Fix"
+local function_selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
 
 import optparse
 import socket

+ 2 - 2
lgsm/functions/info_config.sh

@@ -2,10 +2,10 @@
 # LGSM info_config.sh function
 # Author: Daniel Gibbs
 # Website: https://gameservermanagers.com
-lgsm_version="210516"
-
 # Description: Gets specific details from config files.
 
+local function_selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
+
 ## Examples of filtering to get info from config files
 # sed 's/foo//g' - remove foo
 # tr -cd '[:digit:]' leave only digits

+ 1 - 2
lgsm/functions/info_distro.sh

@@ -2,11 +2,10 @@
 # LGSM info_distro.sh function
 # Author: Daniel Gibbs
 # Website: https://gameservermanagers.com
-lgsm_version="190616"
-
 # Description: Variables providing useful info on the Operating System such as disk and performace info.
 # Used for command_details.sh, command_debug.sh and alert.sh.
 
+local function_selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
 
 ### Distro infomation
 

+ 2 - 2
lgsm/functions/info_glibc.sh

@@ -2,10 +2,10 @@
 # LGSM info_glibc.sh function
 # Author: Daniel Gibbs
 # Website: https://gameservermanagers.com
-lgsm_version="210516"
-
 # Description: stores details on servers Glibc requirements.
 
+local function_selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
+
 if [ "${gamename}" == "Blade Symphony" ]; then
 	glibcrequired="2.15"
 	glibcfix="yes"

+ 2 - 2
lgsm/functions/info_parms.sh

@@ -2,10 +2,10 @@
 # LGSM info_parms.sh function
 # Author: Daniel Gibbs
 # Website: https://gameservermanagers.com
-lgsm_version="210516"
-
 # Description: Gets specific details from server parameters.
 
+local function_selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
+
 ## Examples of filtering to get info from config files
 # sed 's/foo//g' - remove foo
 # tr -cd '[:digit:]' leave only digits

+ 1 - 1
lgsm/functions/install_complete.sh

@@ -2,9 +2,9 @@
 # LGSM install_complete.sh function
 # Author: Daniel Gibbs
 # Website: https://gameservermanagers.com
-lgsm_version="210516"
 
 local modulename="Install"
+local function_selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
 
 if [ "${gamename}" == "Don't Starve Together" ]; then
   echo ""

+ 1 - 1
lgsm/functions/install_config.sh

@@ -2,9 +2,9 @@
 # LGSM install_config.sh function
 # Author: Daniel Gibbs
 # Website: https://gameservermanagers.com
-lgsm_version="210516"
 
 local modulename="Install"
+local function_selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
 
 fn_defaultconfig(){
 	echo "creating ${servercfg} config file."

+ 1 - 2
lgsm/functions/install_gslt.sh

@@ -2,11 +2,10 @@
 # LGSM install_gslt.sh function
 # Author: Daniel Gibbs
 # Website: https://gameservermanagers.com
-lgsm_version="210516"
-
 # Description: Configures GSLT.
 
 local modulename="Install"
+local function_selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
 
 echo ""
 echo "Game Server Login Token"

+ 3 - 1
lgsm/functions/install_gsquery.sh

@@ -2,7 +2,9 @@
 # LGSM install_gsquery.sh function
 # Author: Daniel Gibbs
 # Website: https://gameservermanagers.com
-lgsm_version="210516"
+
+local modulename="Install"
+local function_selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
 
 fn_dlgsquery(){
 	cd "${functionsdir}"

+ 1 - 1
lgsm/functions/install_header.sh

@@ -2,9 +2,9 @@
 # LGSM install_header.sh function
 # Author: Daniel Gibbs
 # Website: https://gameservermanagers.com
-lgsm_version="210516"
 
 local modulename="Install"
+local function_selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
 
 clear
 echo "================================="

+ 1 - 1
lgsm/functions/install_logs.sh

@@ -2,9 +2,9 @@
 # LGSM install_logs.sh function
 # Author: Daniel Gibbs
 # Website: https://gameservermanagers.com
-lgsm_version="210516"
 
 local modulename="Install"
+local function_selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
 
 if [ "${checklogs}" != "1" ]; then
 	echo ""

+ 1 - 1
lgsm/functions/install_retry.sh

@@ -2,9 +2,9 @@
 # LGSM install_retry.sh function
 # Author: Daniel Gibbs
 # Website: https://gameservermanagers.com
-lgsm_version="210516"
 
 local modulename="Install"
+local function_selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
 
 while true; do
 	read -e -i "y" -p "Retry install? [Y/n]" yn

+ 1 - 1
lgsm/functions/install_server_dir.sh

@@ -2,9 +2,9 @@
 # LGSM install_serverdir.sh function
 # Author: Daniel Gibbs
 # Website: https://gameservermanagers.com
-lgsm_version="210516"
 
 local modulename="Install"
+local function_selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
 
 echo ""
 echo "Server Directory"

+ 1 - 1
lgsm/functions/install_server_files.sh

@@ -2,9 +2,9 @@
 # LGSM install_server_files.sh function
 # Author: Daniel Gibbs
 # Website: https://gameservermanagers.com
-lgsm_version="270516"
 
 local modulename="Install"
+local function_selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
 
 fn_install_server_files(){
 	if [ "${gamename}" == "Unreal Tournament 99" ]; then

+ 1 - 2
lgsm/functions/install_steamcmd.sh

@@ -2,11 +2,10 @@
 # LGSM install_steamcmd.sh function
 # Author: Daniel Gibbs
 # Website: https://gameservermanagers.com
-lgsm_version="210516"
-
 # Description: Downloads SteamCMD on install.
 
 local modulename="Install"
+local function_selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
 
 echo ""
 echo "Installing SteamCMD"

+ 1 - 1
lgsm/functions/install_ts3.sh

@@ -2,9 +2,9 @@
 # LGSM install_ts3.sh function
 # Author: Daniel Gibbs
 # Website: https://gameservermanagers.com
-lgsm_version="210516"
 
 local modulename="Install"
+local function_selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
 
 info_distro.sh
 # Gets the teamspeak server architecture

+ 1 - 1
lgsm/functions/install_ts3db.sh

@@ -3,9 +3,9 @@
 # Author: Daniel Gibbs
 # Contributor: PhilPhonic
 # Website: https://gameservermanagers.com
-lgsm_version="210516"
 
 local modulename="Install"
+local function_selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
 
 fn_install_ts3db_mariadb(){
 	echo ""

+ 1 - 1
lgsm/functions/install_ut2k4_key.sh

@@ -2,9 +2,9 @@
 # LGSM install_ut2k4_key.sh function
 # Author: Daniel Gibbs
 # Website: https://gameservermanagers.com
-lgsm_version="210516"
 
 local modulename="Install"
+local function_selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
 
 echo ""
 echo "Enter ${gamename} CD Key"

+ 1 - 2
lgsm/functions/logs.sh

@@ -3,11 +3,10 @@
 # Author: Daniel Gibbs
 # Contributor: UltimateByte
 # Website: https://gameservermanagers.com
-lgsm_version="210516"
-
 # Description: Acts as a log rotater, removing old logs.
 
 local modulename="Log Manager"
+local function_selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
 
 # Check if logfile variable and file exist, create logfile if it doesn't exist
 if [ -n "${consolelog}" ]; then

+ 1 - 2
lgsm/functions/monitor_gsquery.sh

@@ -2,12 +2,11 @@
 # LGSM monitor_gsquery.sh function
 # Author: Daniel Gibbs
 # Website: https://gameservermanagers.com
-lgsm_version="210516"
-
 # Description: uses gsquery.py to query the server port.
 # Detects if the server has frozen with the proccess still running.
 
 local modulename="Monitor"
+local function_selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
 
 # Forces legecy servers to use gsquery
 if [ -z "${gsquery}" ]; then

+ 0 - 2
lgsm/functions/update_check.sh

@@ -2,8 +2,6 @@
 # LGSM update_check.sh function
 # Author: Daniel Gibbs
 # Website: https://gameservermanagers.com
-lgsm_version="210516"
-
 # Description: Checks if a server update is available.
 
 local modulename="Update"

+ 0 - 2
lgsm/functions/update_dl.sh

@@ -2,8 +2,6 @@
 # LGSM update_dl.sh function
 # Author: Daniel Gibbs
 # Website: https://gameservermanagers.com
-lgsm_version="210516"
-
 # Description: Runs a server update.
 
 local modulename="Update"

+ 3 - 2
lgsm/functions/update_steamcmd.sh

@@ -2,10 +2,11 @@
 # LGSM commanf_update.sh function
 # Author: Daniel Gibbs
 # Website: https://gameservermanagers.com
-lgsm_version="210516"
-
 # Description:Handles updating using steamCMD.
 
+local modulename="Update"
+local function_selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
+
 fn_update_steamcmd_dl(){
 
 	check.sh

+ 0 - 2
lgsm/functions/update_ts3.sh

@@ -2,8 +2,6 @@
 # LGSM commanf_update.sh function
 # Author: Daniel Gibbs
 # Website: https://gameservermanagers.com
-lgsm_version="210516"
-
 # Description:Handles updating of teamspeak 3 servers.
 
 local modulename="Update"