Quellcode durchsuchen

Change to function version to variable

Daniel Gibbs vor 10 Jahren
Ursprung
Commit
39e963fb13
57 geänderte Dateien mit 64 neuen und 63 gelöschten Zeilen
  1. 2 2
      functions/fn_backup
  2. 1 1
      functions/fn_check_ip
  3. 3 2
      functions/fn_check_logs
  4. 2 2
      functions/fn_check_root
  5. 1 1
      functions/fn_check_steamcmd
  6. 1 1
      functions/fn_check_steamuser
  7. 2 2
      functions/fn_check_systemdir
  8. 2 2
      functions/fn_check_tmux
  9. 2 2
      functions/fn_check_ts3status
  10. 1 1
      functions/fn_compress_unreal2maps
  11. 1 1
      functions/fn_compress_ut99maps
  12. 1 1
      functions/fn_console
  13. 1 1
      functions/fn_csgofix
  14. 1 1
      functions/fn_debug
  15. 1 1
      functions/fn_deps_detect
  16. 1 1
      functions/fn_details
  17. 1 1
      functions/fn_details_config
  18. 1 1
      functions/fn_details_distro
  19. 1 1
      functions/fn_details_glibc
  20. 1 1
      functions/fn_email
  21. 1 1
      functions/fn_email_test
  22. 1 1
      functions/fn_functions
  23. 1 1
      functions/fn_getopt
  24. 1 1
      functions/fn_insfix
  25. 1 1
      functions/fn_install
  26. 1 1
      functions/fn_install_complete
  27. 1 1
      functions/fn_install_config
  28. 1 1
      functions/fn_install_glibcfix
  29. 1 1
      functions/fn_install_gslt
  30. 1 1
      functions/fn_install_gsquery
  31. 1 1
      functions/fn_install_header
  32. 1 1
      functions/fn_install_kffix
  33. 1 1
      functions/fn_install_logs
  34. 1 1
      functions/fn_install_retry
  35. 1 1
      functions/fn_install_rofix
  36. 1 1
      functions/fn_install_serverdir
  37. 1 1
      functions/fn_install_serverfiles
  38. 1 1
      functions/fn_install_steamcmd
  39. 1 1
      functions/fn_install_steamfix
  40. 1 1
      functions/fn_install_ts3
  41. 1 1
      functions/fn_install_ut2k4
  42. 1 1
      functions/fn_install_ut2k4filesdl
  43. 1 1
      functions/fn_install_ut2k4fix
  44. 1 1
      functions/fn_install_ut2k4key
  45. 1 1
      functions/fn_install_ut99
  46. 1 1
      functions/fn_install_ut99filesdl
  47. 1 1
      functions/fn_install_ut99fix
  48. 1 1
      functions/fn_logs
  49. 1 1
      functions/fn_messages
  50. 1 1
      functions/fn_monitor
  51. 1 1
      functions/fn_monitor_query
  52. 1 1
      functions/fn_start
  53. 1 1
      functions/fn_stop
  54. 1 1
      functions/fn_update_check
  55. 1 1
      functions/fn_update_dl
  56. 1 1
      functions/fn_update_functions
  57. 1 1
      functions/fn_validate

+ 2 - 2
functions/fn_backup

@@ -2,7 +2,7 @@
 # LGSM fn_backup function
 # Author: Daniel Gibbs
 # Website: http://gameservermanagers.com
-# Version: 311015
+lgsm_version="061115"
 
 # Description: Creates a .tar.gz file in the backup directory.
 
@@ -58,4 +58,4 @@ sleep 1
 echo ""
 fn_printcompletenl "Complete."
 fn_scriptlog "Complete"
-echo ""
+echo ""

+ 1 - 1
functions/fn_check_ip

@@ -2,7 +2,7 @@
 # LGSM fn_check_ip function
 # 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".

+ 3 - 2
functions/fn_check_logs

@@ -2,7 +2,8 @@
 # LGSM fn_check_logs function
 # 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 +14,4 @@ if [ ! -d "${scriptlogdir}" ]; then
 	echo -en "\n"
 	checklogs=1
 	fn_install_logs
-fi
+fi

+ 2 - 2
functions/fn_check_root

@@ -2,9 +2,9 @@
 # LGSM fn_check_root function
 # 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
+fi

+ 1 - 1
functions/fn_check_steamcmd

@@ -2,7 +2,7 @@
 # LGSM fn_check_steamcmd function
 # 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
 

+ 1 - 1
functions/fn_check_steamuser

@@ -2,7 +2,7 @@
 # LGSM fn_check_steamuser function
 # Author: Daniel Gibbs
 # Website: http://gameservermanagers.com
-# Version: 040715
+lgsm_version="061115"
 
 if [ "${steamuser}" == "username" ]; then
 	fn_printfailnl "Steam login not set. Update steamuser."	

+ 2 - 2
functions/fn_check_systemdir

@@ -2,9 +2,9 @@
 # LGSM fn_check_systemdir function
 # 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
+fi

+ 2 - 2
functions/fn_check_tmux

@@ -2,7 +2,7 @@
 # LGSM fn_check_tmux function
 # 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 +17,4 @@ else
 	echo "	* Please see the the following link."
 	echo "	* http://gameservermanagers.com/tmux-not-found"
 	exit 127
-fi
+fi

+ 2 - 2
functions/fn_check_ts3status

@@ -2,9 +2,9 @@
 # LGSM fn_check_ts3status function
 # 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})
+ts3status=$(./ts3server_startscript.sh status servercfgfullpathfile=${servercfgfullpath})

+ 1 - 1
functions/fn_compress_unreal2maps

@@ -2,7 +2,7 @@
 # LGSM fn_compress_unreal2maps function
 # Author: Daniel Gibbs
 # Website: http://gameservermanagers.com
-# Version: 311015
+lgsm_version="061115"
 
 fn_check_root
 clear

+ 1 - 1
functions/fn_compress_ut99maps

@@ -2,7 +2,7 @@
 # LGSM fn_compress_ut99maps function
 # Author: Daniel Gibbs
 # Website: http://gameservermanagers.com
-# Version: 311015
+lgsm_version="061115"
 
 fn_check_root
 clear

+ 1 - 1
functions/fn_console

@@ -2,7 +2,7 @@
 # LGSM fn_console function
 # Author: Daniel Gibbs
 # Website: http://gameservermanagers.com
-# Version: 311015
+lgsm_version="061115"
 
 # Description: Gives access to the server tmux console.
 

+ 1 - 1
functions/fn_csgofix

@@ -2,7 +2,7 @@
 # LGSM fn_csgofix function
 # Author: Daniel Gibbs
 # Website: http://gameservermanagers.com
-# Version: 210115
+lgsm_version="061115"
 
 # Description: Resolves various issues with csgo.
 

+ 1 - 1
functions/fn_debug

@@ -2,7 +2,7 @@
 # LGSM fn_debug function
 # Author: Daniel Gibbs
 # Website: http://gameservermanagers.com
-# Version: 051115
+lgsm_version="061115"
 
 # Description: Runs the server without tmux. Runs direct from the terminal.
 

+ 1 - 1
functions/fn_deps_detect

@@ -2,7 +2,7 @@
 # LGSM fn_dep_detect function
 # Author: Daniel Gibbs
 # Website: http://gameservermanagers.com
-# Version: 290615
+lgsm_version="061115"
 
 # Description: Detects dependencies the server binary requires.
 

+ 1 - 1
functions/fn_details

@@ -2,7 +2,7 @@
 # LGSM fn_details function
 # Author: Daniel Gibbs
 # Website: http://gameservermanagers.com
-# Version: 011115
+lgsm_version="061115"
 
 # Description: Displays server infomation.
 

+ 1 - 1
functions/fn_details_config

@@ -2,7 +2,7 @@
 # LGSM fn_details_config function
 # Author: Daniel Gibbs
 # Website: http://gameservermanagers.com
-# Version: 301015
+lgsm_version="061115"
 
 # Description: Gets specific details from config files.
 

+ 1 - 1
functions/fn_details_distro

@@ -2,7 +2,7 @@
 # LGSM fn_details_distro function
 # 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.

+ 1 - 1
functions/fn_details_glibc

@@ -2,7 +2,7 @@
 # LGSM fn_details_glibc function
 # Author: Daniel Gibbs
 # Website: http://gameservermanagers.com
-# Version: 180715
+lgsm_version="061115"
 
 # Description: stores details on servers Glibc requirements.
 

+ 1 - 1
functions/fn_email

@@ -2,7 +2,7 @@
 # LGSM fn_email function
 # Author: Daniel Gibbs
 # Website: http://gameservermanagers.com
-# Version: 290815
+lgsm_version="061115"
 
 # Description: Sends email notification if monitor picks up a failure.
 

+ 1 - 1
functions/fn_email_test

@@ -2,7 +2,7 @@
 # LGSM fn_email_test function
 # Author: Daniel Gibbs
 # Website: http://gameservermanagers.com
-# Version: 210115
+lgsm_version="061115"
 
 # Description: Sends a test email notification.
 

+ 1 - 1
functions/fn_functions

@@ -2,7 +2,7 @@
 # LGSM fn_functions function
 # Author: Daniel Gibbs
 # Website: http://gameservermanagers.com
-# Version: 091215
+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.

+ 1 - 1
functions/fn_getopt

@@ -2,7 +2,7 @@
 # LGSM fn_getopt function
 # Author: Daniel Gibbs
 # Website: http://gameservermanagers.com
-# Version: 011115
+lgsm_version="061115"
 
 # Description: getopt arguments.
 

+ 1 - 1
functions/fn_insfix

@@ -2,7 +2,7 @@
 # LGSM fn_insfix function
 # Author: Daniel Gibbs
 # Website: http://gameservermanagers.com
-# Version: 110415
+lgsm_version="110415"
 
 # Description: Resolves ./srcds_linux: error while loading shared libraries: libtier0.so: cannot open shared object file: No such file or directory
 

+ 1 - 1
functions/fn_install

@@ -2,7 +2,7 @@
 # LGSM fn_install function
 # Author: Daniel Gibbs
 # Website: http://gameservermanagers.com
-# Version: 091215
+lgsm_version="061115"
 
 fn_check_root
 fn_install_header

+ 1 - 1
functions/fn_install_complete

@@ -2,7 +2,7 @@
 # LGSM fn_install_complete function
 # Author: Daniel Gibbs
 # Website: http://gameservermanagers.com
-# Version: 070715
+lgsm_version="061115"
 
 if [ "${gamename}" == "Dont Starve Together" ]; then
   echo ""

+ 1 - 1
functions/fn_install_config

@@ -2,7 +2,7 @@
 # LGSM fn_install_config function
 # Author: Daniel Gibbs
 # Website: http://gameservermanagers.com
-# Version: 051115
+lgsm_version="061115"
 
 fn_defaultconfig(){
 echo "creating ${servercfg} config file."

+ 1 - 1
functions/fn_install_glibcfix

@@ -2,7 +2,7 @@
 # LGSM fn_install_glibcfix function
 # Author: Daniel Gibbs
 # Website: http://gameservermanagers.com
-# Version: 051115
+lgsm_version="061115"
 
 fn_glibcfixmsg(){
 echo ""

+ 1 - 1
functions/fn_install_gslt

@@ -2,7 +2,7 @@
 # LGSM fn_install_gslt function
 # Author: Daniel Gibbs
 # Website: http://gameservermanagers.com
-# Version: 091215
+lgsm_version="091215"
 
 # Description: Configures GSLT.
 

+ 1 - 1
functions/fn_install_gsquery

@@ -2,7 +2,7 @@
 # LGSM fn_install_gsquery function
 # Author: Daniel Gibbs
 # Website: http://gameservermanagers.com
-# Version: 051115
+lgsm_version="061115"
 
 fn_dlgsquery(){
 cd "${rootdir}"

+ 1 - 1
functions/fn_install_header

@@ -2,7 +2,7 @@
 # LGSM fn_install_header function
 # Author: Daniel Gibbs
 # Website: http://gameservermanagers.com
-# Version: 210115
+lgsm_version="061115"
 
 clear
 echo "================================="

+ 1 - 1
functions/fn_install_kffix

@@ -2,7 +2,7 @@
 # LGSM fn_install_kffix function
 # Author: Daniel Gibbs
 # Website: http://gameservermanagers.com
-# Version: 150515
+lgsm_version="061115"
 
 echo "Applying ${gamename} Server Fixes"
 echo "================================="

+ 1 - 1
functions/fn_install_logs

@@ -2,7 +2,7 @@
 # LGSM fn_install_logs function
 # Author: Daniel Gibbs
 # Website: http://gameservermanagers.com
-# Version: 281015
+lgsm_version="061115"
 
 if [ "${checklogs}" != "1" ]; then
 	echo ""

+ 1 - 1
functions/fn_install_retry

@@ -2,7 +2,7 @@
 # LGSM fn_install_retry function
 # Author: Daniel Gibbs
 # Website: http://gameservermanagers.com
-# Version: 051115
+lgsm_version="061115"
 
 while true; do
 	read -e -i "y" -p "Retry install? [Y/n]" yn

+ 1 - 1
functions/fn_install_rofix

@@ -2,7 +2,7 @@
 # LGSM fn_install_rofix function
 # Author: Daniel Gibbs
 # Website: http://gameservermanagers.com
-# Version: 150515
+lgsm_version="061115"
 
 echo "Applying ${gamename} Server Fixes"
 echo "================================="

+ 1 - 1
functions/fn_install_serverdir

@@ -2,7 +2,7 @@
 # LGSM fn_install_serverdir function
 # Author: Daniel Gibbs
 # Website: http://gameservermanagers.com
-# Version: 240515
+lgsm_version="061115"
 
 echo ""
 echo "Server Directory"

+ 1 - 1
functions/fn_install_serverfiles

@@ -2,7 +2,7 @@
 # LGSM fn_install_serverfiles function
 # Author: Daniel Gibbs
 # Website: http://gameservermanagers.com
-# Version: 051115
+lgsm_version="061115"
 
 fn_steaminstallcommand(){
 fn_check_steamuser

+ 1 - 1
functions/fn_install_steamcmd

@@ -2,7 +2,7 @@
 # LGSM fn_check_steamcmd function
 # 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
 

+ 1 - 1
functions/fn_install_steamfix

@@ -2,7 +2,7 @@
 # LGSM fn_install_steamfix function
 # Author: Daniel Gibbs
 # Website: http://gameservermanagers.com
-# Version: 091215
+lgsm_version="061115"
 
 fn_steamclientfix(){
 echo ""

+ 1 - 1
functions/fn_install_ts3

@@ -2,7 +2,7 @@
 # LGSM fn_install_ts3 function
 # Author: Daniel Gibbs
 # Website: http://gameservermanagers.com
-# Version: 311015
+lgsm_version="061115"
 
 fn_details_distro
 # Gets the teamspeak server architecture

+ 1 - 1
functions/fn_install_ut2k4

@@ -2,7 +2,7 @@
 # LGSM fn_install_ut2k4 function
 # Author: Daniel Gibbs
 # Website: http://gameservermanagers.com
-# Version: 210115
+lgsm_version="061115"
 
 echo "Installing ${gamename} Server"
 echo "================================="

+ 1 - 1
functions/fn_install_ut2k4filesdl

@@ -2,7 +2,7 @@
 # LGSM fn_install_ut2k4filesdl function
 # Author: Daniel Gibbs
 # Website: http://gameservermanagers.com
-# Version: 210115
+lgsm_version="061115"
 
 echo "Downloading Server Files"
 echo "================================="

+ 1 - 1
functions/fn_install_ut2k4fix

@@ -2,7 +2,7 @@
 # LGSM fn_install_ut2k4fix function
 # Author: Daniel Gibbs
 # Website: http://gameservermanagers.com
-# Version: 150515
+lgsm_version="061115"
 
 echo "Applying ${gamename} Server Fixes"
 echo "================================="

+ 1 - 1
functions/fn_install_ut2k4key

@@ -2,7 +2,7 @@
 # LGSM fn_install_ut2k4key function
 # Author: Daniel Gibbs
 # Website: http://gameservermanagers.com
-# Version: 210115
+lgsm_version="061115"
 
 echo "Enter ${gamename} CD Key"
 echo "================================="

+ 1 - 1
functions/fn_install_ut99

@@ -2,7 +2,7 @@
 # LGSM fn_install_ut99 function
 # Author: Daniel Gibbs
 # Website: http://gameservermanagers.com
-# Version: 210115
+lgsm_version="061115"
 
 echo "Installing ${gamename} Server"
 echo "================================="

+ 1 - 1
functions/fn_install_ut99filesdl

@@ -2,7 +2,7 @@
 # LGSM fn_install_ut99filesdl function
 # Author: Daniel Gibbs
 # Website: http://gameservermanagers.com
-# Version: 210115
+lgsm_version="061115"
 
 echo "Downloading Server Files"
 echo "================================="

+ 1 - 1
functions/fn_install_ut99fix

@@ -2,7 +2,7 @@
 # LGSM fn_install_ut99fix function
 # Author: Daniel Gibbs
 # Website: http://gameservermanagers.com
-# Version: 070215
+lgsm_version="061115"
 
 echo "Applying ${gamename} Server Fixes"
 echo "================================="

+ 1 - 1
functions/fn_logs

@@ -2,7 +2,7 @@
 # LGSM fn_logs function
 # Author: Daniel Gibbs
 # Website: http://gameservermanagers.com
-# Version: 030715
+lgsm_version="061115"
 
 # Description: Acts as a log rotater, removing old logs.
 

+ 1 - 1
functions/fn_messages

@@ -2,7 +2,7 @@
 # LGSM fn_messages function
 # Author: Daniel Gibbs
 # Website: http://gameservermanagers.com
-# Version: 091215
+lgsm_version="061115"
 
 # Description: Defines on-screen messages such as [  OK  ] and how script logs look.
 

+ 1 - 1
functions/fn_monitor

@@ -2,7 +2,7 @@
 # LGSM fn_monitor function
 # 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.

+ 1 - 1
functions/fn_monitor_query

@@ -2,7 +2,7 @@
 # LGSM fn_monitor_query function
 # 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.

+ 1 - 1
functions/fn_start

@@ -2,7 +2,7 @@
 # LGSM fn_start function
 # Author: Daniel Gibbs
 # Website: http://gameservermanagers.com
-# Version: 301015
+lgsm_version="061115"
 
 # Description: Starts the server.
 

+ 1 - 1
functions/fn_stop

@@ -2,7 +2,7 @@
 # LGSM fn_stop function
 # Author: Daniel Gibbs
 # Website: http://gameservermanagers.com
-# Version: 261015
+lgsm_version="061115"
 
 # Description: Stops the server.
 

+ 1 - 1
functions/fn_update_check

@@ -2,7 +2,7 @@
 # LGSM fn_update_check function
 # Author: Daniel Gibbs
 # Website: http://gameservermanagers.com
-# Version: 011115
+lgsm_version="061115"
 
 # Description: Checks if a server update is available.
 

+ 1 - 1
functions/fn_update_dl

@@ -2,7 +2,7 @@
 # LGSM fn_update_dl function
 # Author: Daniel Gibbs
 # Website: http://gameservermanagers.com
-# Version: 311015
+lgsm_version="061115"
 
 # Description: Runs a server update.
 

+ 1 - 1
functions/fn_update_functions

@@ -2,7 +2,7 @@
 # LGSM fn_update_functions function
 # 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.
 

+ 1 - 1
functions/fn_validate

@@ -2,7 +2,7 @@
 # LGSM fn_validate function
 # Author: Daniel Gibbs
 # Website: http://gameservermanagers.com
-# Version: 040715
+lgsm_version="061115"
 
 # Description: Runs a server validation.