Daniel Gibbs 6 лет назад
Родитель
Сommit
623a87e70b
2 измененных файлов с 3 добавлено и 6 удалено
  1. 1 5
      lgsm/functions/command_start.sh
  2. 2 1
      lgsm/functions/command_ts3_server_pass.sh

+ 1 - 5
lgsm/functions/command_start.sh

@@ -36,11 +36,7 @@ fn_start_teamspeak3(){
 		install_eula.sh
 	fi
 	cd "${executabledir}" || exit
-	if [ "${ts3serverpass}" == "1" ]; then
-		./ts3server_startscript.sh start serveradmin_password="${newpassword}" inifile="${servercfgfullpath}" > /dev/null 2>&1
-	else
-		fn_start_tmux
-	fi
+	fn_start_tmux
 	fn_sleep_time
 	check_status.sh
 	if [ "${status}" == "0" ]; then

+ 2 - 1
lgsm/functions/command_ts3_server_pass.sh

@@ -42,7 +42,8 @@ if [ "${status}" != "0" ]; then
 	exitbypass="1"
 	command_stop.sh
 	fn_serveradmin_password_set
-	ts3serverpass="0"
+	parms="inifile=${servercfgfullpath} pid_file=ts3server.pid"
+W	ts3serverpass="0"
 	fn_print_info_nl "Restarting server normally"
 	fn_script_log_info "Restarting server normally"
 	command_restart.sh