This commit is contained in:
2025-06-11 06:07:14 -07:00
parent eef5dfe6a9
commit a4237183a3

View File

@@ -23,16 +23,16 @@ else
DL_URL="$(echo "$JSON" | jq -r --arg version "$LAT_V" '.*.linuxserver.urls.cdn')"
fi
if [ -z "$DL_URL" ]; then
if [ -z "$CUR_V" ]; then
echo " "
echo "WARNING ! Something went wrong, can't get latest version and found no local version, putting server into sleep mode!---"
sleep infinity
fi
echo " "
echo "INFO ! Can't get lateste version but found local version, continuing with local version..."
LAT_V="$CUR_V"
fi
# if [ -z "$DL_URL" ]; then
# if [ -z "$CUR_V" ]; then
# echo " "
# echo "WARNING ! Something went wrong, can't get latest version and found no local version, putting server into sleep mode!---"
# sleep infinity
# fi
# echo " "
# echo "INFO ! Can't get lateste version but found local version, continuing with local version..."
# LAT_V="$CUR_V"
# fi
VS_SERVER_FILE=https://cdn.vintagestory.at/gamefiles/$VS_CHANNEL/vs_server_linux-x64_$VS_VERSION.tar.gz