From d3086275d09e3db552a9ca6cba222199f59de47c Mon Sep 17 00:00:00 2001 From: Felix Beckmann Date: Fri, 18 Mar 2016 22:54:20 +0100 Subject: [PATCH 1/2] Should always start the server with the inifile If we don't start the server with the ini he may also not load the right sql plugin. --- functions/command_start.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions/command_start.sh b/functions/command_start.sh index 309a8078f..5a6ae2569 100644 --- a/functions/command_start.sh +++ b/functions/command_start.sh @@ -56,7 +56,7 @@ mv "${scriptlog}" "${scriptlogdate}" date > "${rootdir}/${lockselfname}" cd "${executabledir}" if [ "${ts3serverpass}" == "1" ];then - ./ts3server_startscript.sh start serveradmin_password="${newpassword}" + ./ts3server_startscript.sh start serveradmin_password="${newpassword}" inifile="${servercfgfullpath}" else ./ts3server_startscript.sh start inifile="${servercfgfullpath}" > /dev/null 2>&1 fi From dc9b586a1c1396fb39359b8f6c4c636854102b17 Mon Sep 17 00:00:00 2001 From: Felix Beckmann Date: Fri, 18 Mar 2016 22:57:37 +0100 Subject: [PATCH 2/2] Set ts3serverpass to 0 after password change After we started the server with the new password we should reset the ts3serverpass variable otherwise it would start the server again in new password mode. --- functions/command_ts3_server_pass.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/functions/command_ts3_server_pass.sh b/functions/command_ts3_server_pass.sh index b8969a557..a1f1fce0a 100644 --- a/functions/command_ts3_server_pass.sh +++ b/functions/command_ts3_server_pass.sh @@ -45,6 +45,7 @@ fn_printinfonl "Starting server with new password" command_start.sh # Stop server in "new password mode" command_stop.sh +ts3serverpass="0" fn_printoknl "Password applied" fn_scriptlog "New ServerAdmin password applied" sleep 1