mirror of
https://github.com/itzg/docker-minecraft-server
synced 2024-12-15 14:52:27 +00:00
9a7a532f7b
For #577
18 lines
601 B
Bash
18 lines
601 B
Bash
#!/bin/bash
|
|
|
|
. ${SCRIPTS:-/}start-utils
|
|
|
|
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}/stable/latest/download; then
|
|
log "ERROR unable to download version ${VANILLA_VERSION} of Magma"
|
|
log " Check https://magmafoundation.org/ for available versions"
|
|
exit 1
|
|
fi
|
|
|
|
export SKIP_LOG4J_CONFIG=true
|
|
|
|
# Continue to Final Setup
|
|
exec ${SCRIPTS:-/}start-finalSetupWorld $@
|