updates to version handleing
This commit is contained in:
@@ -5,7 +5,7 @@ LABEL maintainer "fithwum"
|
||||
ARG INSTALL_SCRIPT=https://gitlab.fithwum.tech/fithwum/teamspeak-server/-/raw/main/alpine/files/Install_Script.sh
|
||||
|
||||
# Install dependencies and folder creation
|
||||
RUN apk update && apk add --no-cache ca-certificates libstdc++ su-exec bash-completion tar \
|
||||
RUN apk update && apk add --no-cache ca-certificates libstdc++ su-exec bash-completion tar curl jq \
|
||||
&& mkdir -p /ts3server /ts3temp /ts3temp/inifiles /ts3temp/serverfiles \
|
||||
&& chmod 777 -R /ts3server /ts3temp \
|
||||
&& chown 99:100 -R /ts3server /ts3temp
|
||||
|
||||
@@ -6,9 +6,7 @@
|
||||
TS_FILES=https://gitlab.fithwum.tech/fithwum/teamspeak-server/-/raw/main/files
|
||||
echo " "
|
||||
echo "Checking for new server version from Teamspeak."
|
||||
wget --no-cache https://www.teamspeak.com/versions/server.json -O /ts3temp/server.json
|
||||
TS_VERSION_CHECK=$(cat /ts3temp/server.json | grep version | head -1 | awk -F: '{print $4}' | sed 's/[",]//g' | sed "s/checksum//g")
|
||||
TS_VERSION=${TS_VERSION_CHECK}
|
||||
TS_VERSION=$(curl -s "https://www.teamspeak.com/versions/server.json" | jq --raw-output '.linux.x86.version')
|
||||
CHANGELOG=/ts3server/CHANGELOG_${TS_VERSION}
|
||||
echo "Latest server version from Teamspeak:$TS_VERSION"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user