Added logging of given VERSION and TYPE

This commit is contained in:
Geoff Bourne
2020-03-28 13:56:48 -05:00
parent 111ca85c4f
commit f49b967d5a

View File

@@ -47,7 +47,6 @@ fi
export SERVER_PROPERTIES=/data/server.properties
export VERSIONS_JSON=https://launchermeta.mojang.com/mc/game/version_manifest.json
log "Checking version information."
case "X$VERSION" in
X|XLATEST|Xlatest)
export VANILLA_VERSION=`curl -fsSL $VERSIONS_JSON | jq -r '.latest.release'`
@@ -62,12 +61,13 @@ case "X$VERSION" in
export VANILLA_VERSION=`curl -fsSL $VERSIONS_JSON | jq -r '.latest.release'`
;;
esac
log "Resolved version given ${VERSION} into ${VANILLA_VERSION}"
cd /data
export ORIGINAL_TYPE=${TYPE^^}
log "Checking type information."
log "Resolving type given ${TYPE}"
case "${TYPE^^}" in
*BUKKIT|SPIGOT)
exec /start-deployBukkitSpigot $@