From 21ee5e2401a08d03ca3d4484893c50b7c43de1ae Mon Sep 17 00:00:00 2001 From: Geoff Bourne Date: Sun, 19 Jul 2020 12:22:15 -0500 Subject: [PATCH] Changed handling of unrecognized VERSION and detect absent server in meta json For #590 --- start-configuration | 5 +---- start-deployVanilla | 3 +++ 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/start-configuration b/start-configuration index deb6e792..efb837aa 100644 --- a/start-configuration +++ b/start-configuration @@ -71,11 +71,8 @@ case "X$VERSION" in XSNAPSHOT|Xsnapshot) VANILLA_VERSION=$(curl -fsSL $VERSIONS_JSON | jq -r '.latest.snapshot') ;; - X[1-9]*) - VANILLA_VERSION=$VERSION - ;; *) - VANILLA_VERSION=$(curl -fsSL $VERSIONS_JSON | jq -r '.latest.release') + VANILLA_VERSION=$VERSION ;; esac export VANILLA_VERSION diff --git a/start-deployVanilla b/start-deployVanilla index 59283b15..c7c9d05f 100644 --- a/start-deployVanilla +++ b/start-deployVanilla @@ -26,6 +26,9 @@ if [ ! -e $SERVER ] || [ -n "$FORCE_REDOWNLOAD" ]; then if [ $result != 0 ]; then log "ERROR failed to obtain version manifest from $versionManifestUrl ($result)" exit 1 + elif [ $serverDownloadUrl = null ]; then + log "ERROR version $VANILLA_VERSION does not provide a server download" + exit 1 fi debug "Downloading server from $serverDownloadUrl"