Forráskód Böngészése

Replaced deprecated functions with fn_serverdetails

Daniel Gibbs 11 éve
szülő
commit
c40e17c4d6
3 módosított fájl, 7 hozzáadás és 11 törlés
  1. 2 4
      functions/fn_debugserver
  2. 2 4
      functions/fn_emailnotification
  3. 3 3
      functions/fn_functions

+ 2 - 4
functions/fn_debugserver

@@ -2,7 +2,7 @@
 # LGSM fn_debugserver function
 # Author: Daniel Gibbs
 # Website: http://danielgibbs.co.uk
-# Version: 010115
+# Version: 140115
 
 # Description: Runs the server without tmux. Runs direct from the terminal.
 
@@ -10,9 +10,7 @@ local modulename="Debug"
 fn_rootcheck
 fn_syscheck
 fn_autoip
-fn_distro
-fn_uptime
-fn_load
+fn_distrodetails
 fn_parms
 echo ""
 echo "${gamename} Debug"

+ 2 - 4
functions/fn_emailnotification

@@ -2,15 +2,13 @@
 # LGSM fn_emailnotification function
 # Author: Daniel Gibbs
 # Website: http://danielgibbs.co.uk
-# Version: 010115
+# Version: 150115
 
 # Description: Sends email notification if monitor picks up a failure.
 
 local modulename="Email"
 fn_printdots "Sending notification to ${email}"
-fn_distro
-fn_uptime
-fn_load
+fn_distrodetails
 {
 	echo -e "========================================\n${servicename} details\n========================================\n"
 	echo -e "Service: ${servicename}"

+ 3 - 3
functions/fn_functions

@@ -32,7 +32,7 @@ functionfile="${FUNCNAME}"
 fn_runfunction
 }
 
-# Depricated: fn_distrodetails has replaced this function.
+# Deprecated: fn_distrodetails has replaced this function.
 fn_distro(){
 functionfile="${FUNCNAME}"
 fn_runfunction
@@ -52,7 +52,7 @@ functionfile="${FUNCNAME}"
 fn_runfunction
 }
 
-# Depricated: fn_distrodetails has replaced this function.
+# Deprecated: fn_distrodetails has replaced this function.
 fn_load(){
 functionfile="${FUNCNAME}"
 fn_runfunction
@@ -130,7 +130,7 @@ functionfile="${FUNCNAME}"
 fn_runfunction
 }
 
-# Depricated: fn_distrodetails has replaced this function.
+# Deprecated: fn_distrodetails has replaced this function.
 fn_uptime(){
 functionfile="${FUNCNAME}"
 fn_runfunction