mirror of
https://github.com/itzg/docker-minecraft-server.git
synced 2024-06-07 19:40:43 +00:00
24 lines
704 B
Bash
24 lines
704 B
Bash
#!/bin/bash
|
|
|
|
. ${SCRIPTS:-/}start-utils
|
|
|
|
isDebugging && set -x
|
|
|
|
# stable, dev
|
|
: ${MAGMA_CHANNEL:=stable}
|
|
|
|
export SERVER="/data/magma-server-${VANILLA_VERSION}.jar"
|
|
|
|
# Always download since new updates of each base version are published frequently
|
|
if ! curl -o /data/magma-server-${VANILLA_VERSION}.jar -fsSL \
|
|
https://api.magmafoundation.org/api/resources/Magma/${VANILLA_VERSION}/${MAGMA_CHANNEL}/latest/download; then
|
|
log "ERROR unable to download version ${VANILLA_VERSION} of Magma in ${MAGMA_CHANNEL} channel"
|
|
log " Check https://magmafoundation.org/ for available versions"
|
|
exit 1
|
|
fi
|
|
|
|
export SKIP_LOG4J_CONFIG=true
|
|
|
|
# Continue to Final Setup
|
|
exec ${SCRIPTS:-/}start-finalSetupWorld $@
|