Skip to content

Commit 1689f3c

Browse files
TylerMackJdgibbs64
andauthored
feat(vints): add ability to select Vintage Story versions (#4817)
* feat(vints): add ability to select Vintage Story versions * docs(vints): update vintage story default config --------- Co-authored-by: Daniel Gibbs <me@danielgibbs.co.uk>
1 parent 2ac6802 commit 1689f3c

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

lgsm/config-default/config-lgsm/vintsserver/_default.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
startparameters="--dataPath ${servercfgdir}"
1313

1414
## Release Settings | https://docs.linuxgsm.com/game-servers/vintagestory#release-settings
15-
# Branch (stable|unstable)
15+
# Branch (stable|unstable|<version>)
1616
branch="stable"
1717

1818
#### LinuxGSM Settings ####

lgsm/modules/update_vints.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,10 @@ fn_update_remotebuild() {
3939
remotebuildresponse=$(curl -s "${apiurl}")
4040
if [ "${branch}" == "stable" ]; then
4141
remotebuildversion=$(echo "${remotebuildresponse}" | jq -r '[ to_entries[] ] | .[].key' | grep -Ev "\-rc|\-pre" | sort -r -V | head -1)
42-
else
42+
elif [ "${branch}" == "unstable" ]; then
4343
remotebuildversion=$(echo "${remotebuildresponse}" | jq -r '[ to_entries[] ] | .[].key' | grep -E "\-rc|\-pre" | sort -r -V | head -1)
44+
else
45+
remotebuildversion="${branch}"
4446
fi
4547
remotebuildfilename=$(echo "${remotebuildresponse}" | jq --arg remotebuildversion "${remotebuildversion}" -r '.[$remotebuildversion].linuxserver.filename')
4648
remotebuildurl=$(echo "${remotebuildresponse}" | jq --arg remotebuildversion "${remotebuildversion}" -r '.[$remotebuildversion].linuxserver.urls.cdn')

0 commit comments

Comments
 (0)