2020-04-21 23:30:48 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
2020-06-19 16:05:32 +00:00
|
|
|
. ${SCRIPTS:-/}start-utils
|
2020-04-21 23:30:48 +00:00
|
|
|
|
|
|
|
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
|
2020-06-19 16:05:32 +00:00
|
|
|
exec ${SCRIPTS:-/}start-finalSetup01World $@
|