mirror of
https://github.com/itzg/docker-minecraft-server.git
synced 2026-08-30 18:57:15 +00:00
Switch GTNH pack version metadata url to new endpoint (#3955)
This commit is contained in:
@@ -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