Jelajahi Sumber

info_ts3status.sh deprecated

Daniel Gibbs 10 tahun lalu
induk
melakukan
eb903e5145

+ 2 - 2
lgsm/functions/command_stop.sh

@@ -191,8 +191,8 @@ fn_stop_teamspeak3(){
 # checks if the server is already stopped before trying to stop.
 fn_stop_pre_check(){
 	if [ "${gamename}" == "Teamspeak 3" ]; then
-		info_ts3status.sh
-		if [ "${ts3status}" = "No server running (ts3server.pid is missing)" ]; then
+		check_status.sh
+		if [ "${status}" == "0" ]; then
 			fn_print_ok_nl "${servername} is already stopped"
 			fn_scriptlog "${servername} is already stopped"
 		else

+ 2 - 2
lgsm/functions/command_ts3_server_pass.sh

@@ -54,8 +54,8 @@ sleep 1
 # Running functions
 check.sh
 fn_serveradmin_password_prompt
-info_ts3status.sh
-if [ "${ts3status}" == "Server is running" ]; then
+check_status.sh
+if [ "${status}" != "0" ]; then
 	fn_serveradmin_password_set
 	command_start.sh
 else

+ 0 - 6
lgsm/functions/core_functions.sh

@@ -329,12 +329,6 @@ functionfile="${FUNCNAME}"
 fn_fetch_function
 }
 
-info_ts3status.sh(){
-functionfile="${FUNCNAME}"
-fn_fetch_function
-}
-
-
 # Email
 
 email.sh(){