From 29978f49718531437fdb224e864cdfc2d9c79255 Mon Sep 17 00:00:00 2001 From: fithwum Date: Thu, 30 Jul 2026 06:54:24 -0700 Subject: [PATCH] updates --- alpine/Dockerfile | 1 + alpine/files/Install_Script.sh | 4 +--- basic/Dockerfile | 3 ++- basic/files/Install_Script.sh | 20 +++++++++++++++----- debian/Dockerfile | 2 +- debian/files/Install_Script.sh | 4 +--- 6 files changed, 21 insertions(+), 13 deletions(-) diff --git a/alpine/Dockerfile b/alpine/Dockerfile index 8709115..27b6526 100644 --- a/alpine/Dockerfile +++ b/alpine/Dockerfile @@ -1,6 +1,7 @@ FROM alpine:latest LABEL maintainer="fithwum" +ENV AUTO_UPDATE="" ENV TS_VERSION="" # URL's for files diff --git a/alpine/files/Install_Script.sh b/alpine/files/Install_Script.sh index d30b631..e57350f 100644 --- a/alpine/files/Install_Script.sh +++ b/alpine/files/Install_Script.sh @@ -1,10 +1,8 @@ #!/bin/bash -# Copyright (c) 2018 fithwum +# Copyright (c) 2026 fithwum # All rights reserved # Variables. -# echo " " -# echo "Checking server version from Teamspeak." CHANGELOG=/ts3server/CHANGELOG_$TS_VERSION : "${AUTO_UPDATE:=true}" diff --git a/basic/Dockerfile b/basic/Dockerfile index 4192a12..032bbfd 100644 --- a/basic/Dockerfile +++ b/basic/Dockerfile @@ -1,7 +1,8 @@ FROM gitea.fithwum.tech/fithwum/debian-base:bookworm LABEL maintainer="fithwum" -# ENV TS_VERSION="" +ENV AUTO_UPDATE="" +ENV TS_VERSION="" # URL's for files ARG INSTALL_SCRIPT=https://gitea.fithwum.tech/fithwum/teamspeak-server/raw/branch/main/basic/files/Install_Script.sh diff --git a/basic/files/Install_Script.sh b/basic/files/Install_Script.sh index 9e34e0f..6e76f49 100644 --- a/basic/files/Install_Script.sh +++ b/basic/files/Install_Script.sh @@ -1,13 +1,23 @@ #!/bin/bash -# Copyright (c) 2018 fithwum +# Copyright (c) 2026 fithwum # All rights reserved # Variables. -echo " " -echo "Checking server version from Teamspeak." -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." + +: "${AUTO_UPDATE:=true}" + +if [ "$AUTO_UPDATE" = "true" ]; then + echo "INFO ! Teamspeak will auto update to the latest version." + echo "Checking server version from Teamspeak." + TS_VERSION=$(curl -s "https://www.teamspeak.com/versions/server.json" | jq --raw-output '.linux.x86.version') + echo "Latest server version from Teamspeak:$TS_VERSION." +elif [ "$AUTO_UPDATE" = "false" ]; then + echo "INFO ! The version you selected will be installed." +else + echo "ERROR ! AUTO_UPDATE must be set to true or false on first run" + sleep infinity +fi TS_FILES=https://gitea.fithwum.tech/fithwum/teamspeak-server/raw/branch/main/files TS_SERVER=https://files.teamspeak-services.com/releases/server/$TS_VERSION/teamspeak3-server_linux_amd64-$TS_VERSION.tar.bz2 diff --git a/debian/Dockerfile b/debian/Dockerfile index 63a149e..2220400 100644 --- a/debian/Dockerfile +++ b/debian/Dockerfile @@ -1,7 +1,7 @@ FROM gitea.fithwum.tech/fithwum/debian-base:bookworm LABEL maintainer="fithwum" -ENV AUTO_UPDATE="true" +ENV AUTO_UPDATE="" ENV TS_VERSION="" # URL's for files diff --git a/debian/files/Install_Script.sh b/debian/files/Install_Script.sh index ab37765..1176aee 100644 --- a/debian/files/Install_Script.sh +++ b/debian/files/Install_Script.sh @@ -1,10 +1,8 @@ #!/bin/bash -# Copyright (c) 2018 fithwum +# Copyright (c) 2026 fithwum # All rights reserved # Variables. -# echo " " -# echo "Checking server version from Teamspeak." CHANGELOG=/ts3server/CHANGELOG_$TS_VERSION : "${AUTO_UPDATE:=true}"