From 965bbfe9f2079bd95a76260d91ca97144ca67de6 Mon Sep 17 00:00:00 2001 From: lrob Date: Fri, 5 Feb 2016 16:49:44 +0100 Subject: [PATCH] Updated wrong server architecture method Now matching install method --- functions/update_check.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/functions/update_check.sh b/functions/update_check.sh index ece46fb88..6ae3dbd9b 100644 --- a/functions/update_check.sh +++ b/functions/update_check.sh @@ -208,7 +208,14 @@ fi currentbuild=$(cat $(find ./* -name 'ts3server*_0.log' 2> /dev/null | sort | egrep -E -v '${rootdir}/.ts3version' | tail -1) | egrep -o 'TeamSpeak 3 Server ((\.)?[0-9]{1,3}){1,3}\.[0-9]{1,3}' | egrep -o '((\.)?[0-9]{1,3}){1,3}\.[0-9]{1,3}') # Gets the teamspeak server architecture -ts3arch=$(ls $(find ${filesdir}/ -name 'ts3server_*_*' 2> /dev/null | grep -v 'ts3server_minimal_runscript.sh' | sort | tail -1) | egrep -o '(amd64|x86)' | tail -1) +if [ "${arch}" == "x86_64" ]; then + ts3arch="amd64" +elif [ "${arch}" == "i386" ]||[ "${arch}" == "i686" ]; then + ts3arch="x86" +else + fn_printfailure "${arch} is an unsupported architecture" + exit 1 +fi # Gets availablebuild info