Kaynağa Gözat

removed ts3 if

Daniel Gibbs 6 yıl önce
ebeveyn
işleme
2e42dc53b0

+ 1 - 14
lgsm/functions/check_status.sh

@@ -8,17 +8,4 @@
 local commandname="CHECK"
 local function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
 
-if [ "${shortname}" == "ts3" ]; then
-	# 1: Server is running
-	# 0: Server seems to have died
-	# 0: No server running (ts3server.pid is missing)
-	status=$("${executabledir}/ts3server_startscript.sh" status servercfgfullpathfile="${servercfgfullpath}")
-	if [ "${status}" == "Server is running" ]; then
-		status=1
-	else
-		ts3error="${status}"
-		status=0
-	fi
-else
-	status=$(tmux list-sessions -F "#{session_name}" 2>/dev/null | grep -Ecx "^${servicename}")
-fi
+status=$(tmux list-sessions -F "#{session_name}" 2>/dev/null | grep -Ecx "^${servicename}")

+ 1 - 1
lgsm/functions/command_ts3_server_pass.sh

@@ -29,7 +29,7 @@ fn_serveradmin_password_set(){
 	ts3serverpass="1"
 	exitbypass="1"
 	command_start.sh
-	fn_print_ok_nl "Password applied"
+	fn_print_ok_nl "New password applied"
 	fn_script_log_pass "New ServerAdmin password applied"
 }