Daniel Gibbs пре 10 година
родитељ
комит
4aa2c3ad76
3 измењених фајлова са 11 додато и 11 уклоњено
  1. 3 3
      functions/command_email_test.sh
  2. 1 1
      functions/core_functions.sh
  3. 7 7
      functions/core_getopt.sh

+ 3 - 3
functions/email_test.sh → functions/command_email_test.sh

@@ -1,5 +1,5 @@
 #!/bin/bash
-# LGSM email_test.sh function
+# LGSM command_email_test.sh function
 # Author: Daniel Gibbs
 # Website: http://gameservermanagers.com
 lgsm_version="271215"
@@ -7,8 +7,8 @@ lgsm_version="271215"
 # Description: Sends a test email notification.
 
 local modulename="Email"
-check_root.sh
-check_systemdir.sh
+function_selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
+check.sh
 info_config.sh
 if [ "${emailnotification}" = "on" ]; then
 	fn_scriptlog "Sending test notification"

+ 1 - 1
functions/core_functions.sh

@@ -206,7 +206,7 @@ functionfile="${FUNCNAME}"
 fn_runfunction
 }
 
-email_test.sh(){
+command_email_test.sh(){
 functionfile="${FUNCNAME}"
 fn_runfunction
 }

+ 7 - 7
functions/core_getopt.sh

@@ -26,7 +26,7 @@ case "$getopt" in
 	m|monitor)
 		command_monitor.sh;;
 	et|email-test)
-		email_test.sh;;
+		command_email_test.sh;;
 	d|details)
 		command_details.sh;;
 	b|backup)
@@ -85,7 +85,7 @@ case "$getopt" in
 	m|monitor)
 		command_monitor.sh;;
 	et|email-test)
-		email_test.sh;;
+		command_email_test.sh;;
 	d|details)
 		command_details.sh;;
 	b|backup)
@@ -134,7 +134,7 @@ case "$getopt" in
 	m|monitor)
 		command_monitor.sh;;
 	et|email-test)
-		email_test.sh;;
+		command_email_test.sh;;
 	b|backup)
 		command_backup.sh;;
 	dev|dev-debug)
@@ -186,7 +186,7 @@ case "$getopt" in
 	m|monitor)
 		command_monitor.sh;;
 	et|email-test)
-		email_test.sh;;
+		command_email_test.sh;;
 	d|details)
 		command_details.sh;;
 	b|backup)
@@ -243,7 +243,7 @@ case "$getopt" in
 	m|monitor)
 		command_monitor.sh;;
 	et|email-test)
-		email_test.sh;;
+		command_email_test.sh;;
 	d|details)
 		command_details.sh;;
 	b|backup)
@@ -305,7 +305,7 @@ case "$getopt" in
 	m|monitor)
 		command_monitor.sh;;
 	et|email-test)
-		email_test.sh;;
+		command_email_test.sh;;
 	d|details)
 		command_details.sh;;
 	b|backup)
@@ -366,7 +366,7 @@ case "$getopt" in
 	m|monitor)
 		command_monitor.sh;;
 	et|email-test)
-		email_test.sh;;
+		command_email_test.sh;;
 	d|details)
 		command_details.sh;;
 	b|backup)