diff --git a/README.md b/README.md index 7620ac0..3355188 100644 --- a/README.md +++ b/README.md @@ -11,6 +11,7 @@ services: volumes: - "./vintagestory:/data" environment: + - "VS_BRANCH=stable" - "VS_VERSION=1.20.7" ports: - "42420:42420/tcp" diff --git a/entry.sh b/entry.sh index 10bfb7c..39eb1f3 100644 --- a/entry.sh +++ b/entry.sh @@ -6,7 +6,12 @@ if [[ ! -v VS_VERSION ]]; then exit 1 fi -wget https://cdn.vintagestory.at/gamefiles/stable/vs_server_linux-x64_${VS_VERSION}.tar.gz +if [[ ! -v VS_BRANCH ]]; then + echo "You need to set the VS_BRANCH env variable." + exit 1 +fi + +wget https://cdn.vintagestory.at/gamefiles/${VS_BRANCH}/vs_server_linux-x64_${VS_VERSION}.tar.gz tar xzf vs_server_linux-*.tar.gz rm vs_server_linux-*.tar.gz