diff --git a/lgsm/functions/command_stop.sh b/lgsm/functions/command_stop.sh index b36ddfd90..1f941eb36 100644 --- a/lgsm/functions/command_stop.sh +++ b/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 diff --git a/lgsm/functions/command_ts3_server_pass.sh b/lgsm/functions/command_ts3_server_pass.sh index ad725df82..e4bed70b7 100644 --- a/lgsm/functions/command_ts3_server_pass.sh +++ b/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 diff --git a/lgsm/functions/core_functions.sh b/lgsm/functions/core_functions.sh index e80998a44..1598157b5 100644 --- a/lgsm/functions/core_functions.sh +++ b/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(){