mirror of
https://github.com/itzg/docker-minecraft-server
synced 2024-12-16 23:23:06 +00:00
Auto-merging via docker-versions-create
This commit is contained in:
commit
c4fa657c61
2 changed files with 10 additions and 3 deletions
|
@ -470,7 +470,9 @@ A [Magma](https://magmafoundation.org/) server, which is a combination of Forge
|
||||||
|
|
||||||
-e TYPE=MAGMA
|
-e TYPE=MAGMA
|
||||||
|
|
||||||
> **NOTE** there are limited base versions supported, so you will also need to set `VERSION`, such as "1.12.2"
|
By default, the "stable" channel is used, but you can set `MAGMA_CHANNEL` to "dev" to access dev channel versions.
|
||||||
|
|
||||||
|
> **NOTE** there are limited base versions supported, so you will also need to set `VERSION`, such as "1.12.2", ""
|
||||||
|
|
||||||
|
|
||||||
### Running a Mohist server
|
### Running a Mohist server
|
||||||
|
|
|
@ -2,12 +2,17 @@
|
||||||
|
|
||||||
. ${SCRIPTS:-/}start-utils
|
. ${SCRIPTS:-/}start-utils
|
||||||
|
|
||||||
|
isDebugging && set -x
|
||||||
|
|
||||||
|
# stable, dev
|
||||||
|
: ${MAGMA_CHANNEL:=stable}
|
||||||
|
|
||||||
export SERVER="/data/magma-server-${VANILLA_VERSION}.jar"
|
export SERVER="/data/magma-server-${VANILLA_VERSION}.jar"
|
||||||
|
|
||||||
# Always download since new updates of each base version are published frequently
|
# Always download since new updates of each base version are published frequently
|
||||||
if ! curl -o /data/magma-server-${VANILLA_VERSION}.jar -fsSL \
|
if ! curl -o /data/magma-server-${VANILLA_VERSION}.jar -fsSL \
|
||||||
https://api.magmafoundation.org/api/resources/Magma/${VANILLA_VERSION}/stable/latest/download; then
|
https://api.magmafoundation.org/api/resources/Magma/${VANILLA_VERSION}/${MAGMA_CHANNEL}/latest/download; then
|
||||||
log "ERROR unable to download version ${VANILLA_VERSION} of Magma"
|
log "ERROR unable to download version ${VANILLA_VERSION} of Magma in ${MAGMA_CHANNEL} channel"
|
||||||
log " Check https://magmafoundation.org/ for available versions"
|
log " Check https://magmafoundation.org/ for available versions"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue