From 93cc93760d7cd3924afb657573f3edfcabd8fc6c Mon Sep 17 00:00:00 2001 From: fithwum Date: Mon, 27 Jul 2026 13:45:04 -0700 Subject: [PATCH] update to dotnet install --- my-Vintage-Story.xml | 1 + server/Dockerfile | 1 + server/install_script.sh | 8 ++++---- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/my-Vintage-Story.xml b/my-Vintage-Story.xml index a1454ff..414430b 100755 --- a/my-Vintage-Story.xml +++ b/my-Vintage-Story.xml @@ -25,6 +25,7 @@ 1.21.5 fithwum + /mnt/user/Games/Saves/vintagestory/ /mnt/user/Games/Servers/vintage-story-server 99 diff --git a/server/Dockerfile b/server/Dockerfile index 120b942..4375323 100644 --- a/server/Dockerfile +++ b/server/Dockerfile @@ -5,6 +5,7 @@ LABEL maintainer="fithwum" ENV VS_CHANNEL="" ENV VS_VERSION="" ENV USERNAME="" +ENV DOTNET_VERSION="" # URL's for files ARG INSTALL_SCRIPT=https://gitea.fithwum.tech/fithwum/vintage-story/raw/branch/main/server/install_script.sh diff --git a/server/install_script.sh b/server/install_script.sh index ab73e9c..d396d77 100644 --- a/server/install_script.sh +++ b/server/install_script.sh @@ -5,17 +5,17 @@ VS_SERVER_FILE=https://cdn.vintagestory.at/gamefiles/$VS_CHANNEL/vs_server_linux-x64_$VS_VERSION.tar.gz # DOTnet install -if [ dpkg -s dotnet-sdk-8.0 &> /dev/null ] +if [ dpkg -s dotnet-sdk-$DOTNET_VERSION &> /dev/null ] then - echo "INFO ! dotnet-sdk-8.0 installed ... moving on." + echo "INFO ! dotnet-sdk-$DOTNET_VERSION installed ... moving on." else echo " " - echo "WARNING ! dotnet-sdk-8.0 not installed ... will install now." + echo "WARNING ! dotnet-sdk-$DOTNET_VERSION not installed ... will install now." wget --no-cache --show-progress --progress=bar:force:noscroll https://packages.microsoft.com/config/debian/12/packages-microsoft-prod.deb -O packages-microsoft-prod.deb dpkg -i packages-microsoft-prod.deb rm packages-microsoft-prod.deb apt-get -y update - apt-get install -y dotnet-sdk-8.0 + apt-get install -y dotnet-sdk-$DOTNET_VERSION fi # Main install (Debian).