mirror of
https://github.com/itzg/docker-minecraft-server.git
synced 2026-10-18 17:18:11 +00:00
Switch GTNH pack version metadata url to new endpoint (#3955)
This commit is contained in:
1 parent
a62be28cfd
commit
7c2c0ded70
1 file changed
+5
-2
@@ -8,8 +8,11 @@ function getGTNHdownloadPath(){
|
|||||||
gtnh_download_path=""
|
gtnh_download_path=""
|
||||||
current_java_version=$(mc-image-helper java-release)
|
current_java_version=$(mc-image-helper java-release)
|
||||||
|
|
||||||
if ! packs_data="$(restify --tag=a https://www.gtnewhorizons.com/version-history/ | jq -r '.[].href | select(test("Server"))')"; then
|
if ! packs_data="$(
|
||||||
logError "Failed to retrieve data from http://downloads.gtnewhorizons.com/ServerPacks/?raw"
|
curl -fsSL "https://downloads.gtnewhorizons.com/versions.json" \
|
||||||
|
| jq -r '.versions[]?.server? | .[]? | select(type=="string" and test("Server"))'
|
||||||
|
)"; then
|
||||||
|
logError "Failed to retrieve data from https://downloads.gtnewhorizons.com/versions.json"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
mapfile -t packs <<< "$packs_data"
|
mapfile -t packs <<< "$packs_data"
|
||||||
|
|||||||
Reference in new issue
Block a user