mirror of
https://github.com/itzg/docker-minecraft-server.git
synced 2024-06-07 19:40:43 +00:00
28 lines
777 B
Plaintext
28 lines
777 B
Plaintext
|
#!/bin/bash
|
||
|
|
||
|
. /start-utils
|
||
|
|
||
|
if [ "${VERSION}" != "LATEST" ]; then
|
||
|
log "ERROR: Tunity server type only supports VERSION=LATEST"
|
||
|
exit 1
|
||
|
fi
|
||
|
|
||
|
: ${TUNITY_BUILD:=lastSuccessfulBuild}
|
||
|
export SERVER=tunity-${VANILLA_VERSION}-${TUNITY_BUILD}.jar
|
||
|
|
||
|
if [ ! -f "$SERVER" ] || [ -n "$FORCE_REDOWNLOAD" ]; then
|
||
|
downloadUrl="https://ci.codemc.io/job/Spottedleaf/job/Tuinity/${TUNITY_BUILD}/artifact/tuinity-paperclip.jar"
|
||
|
log "Downloading Tunity (build $TUNITY_BUILD) from $downloadUrl ..."
|
||
|
curl -fsSL -o "$SERVER" "$downloadUrl"
|
||
|
if [ ! -f "$SERVER" ]; then
|
||
|
log "ERROR: failed to download from $downloadUrl (status=$?)"
|
||
|
exit 3
|
||
|
fi
|
||
|
fi
|
||
|
|
||
|
# Normalize on Spigot for operations below
|
||
|
export TYPE=SPIGOT
|
||
|
|
||
|
# Continue to Final Setup
|
||
|
exec /start-finalSetup01World $@
|