Explorar el Código

fix(ts3server): fix ability to update TS3 on older i686 arch. (#2367)

Co-authored-by: Kirill Shamilin <kirill@shamilin.ru>
Kirill Shamilin hace 7 años
padre
commit
c4978b6ce8
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      lgsm/functions/update_ts3.sh

+ 2 - 2
lgsm/functions/update_ts3.sh

@@ -103,9 +103,9 @@ fn_update_ts3_localbuild(){
 
 fn_update_ts3_remotebuild(){
 	# Gets remote build info.
-	if [ "${arch}" == "x86_64" ]; then
+	if [ "${ts3arch}" == "x86_64" ]; then
 		remotebuild="$(${curlpath} -s "https://www.teamspeak.com/versions/server.json" | jq -r '.linux.x86_64.version')"
-	elif [ "${arch}" == "x86" ]; then
+	elif [ "${ts3arch}" == "x86" ]; then
 		remotebuild="$(${curlpath} -s "https://www.teamspeak.com/versions/server.json" | jq -r '.linux.x86.version')"
 	fi
 	if [ "${installer}" != "1" ]; then