docker-minecraft-server/scripts/start-deployKetting

33 lines
692 B
Plaintext
Raw Permalink Normal View History

2023-12-11 13:19:25 +00:00
#!/bin/bash
# shellcheck source=start-utils
. "${SCRIPTS:-/}start-utils"
isDebugging && set -x
2024-02-11 02:04:44 +00:00
if ! SERVER=$(mc-image-helper github download-latest-asset \
--output-directory=/data \
--name-pattern="kettinglauncher-.+?(?<!-sources)\.jar" \
kettingpowered/kettinglauncher
); then
log "ERROR: failed to download Ketting launcher"
exit 1
fi
2023-12-11 13:19:25 +00:00
2024-02-11 02:04:44 +00:00
export SERVER
2023-12-11 13:19:25 +00:00
2024-02-11 02:04:44 +00:00
resolveVersion
2023-12-11 13:19:25 +00:00
2024-02-11 02:04:44 +00:00
EXTRA_ARGS+="-minecraftVersion $VERSION"
if [[ ${KETTING_VERSION:-} ]]; then
EXTRA_ARGS+="-kettingVersion $KETTING_VERSION"
2023-12-11 13:19:25 +00:00
fi
2024-02-11 02:04:44 +00:00
if [[ ${FORGE_VERSION:-} ]]; then
EXTRA_ARGS+="-forgeVersion $FORGE_VERSION"
2023-12-11 13:19:25 +00:00
fi
2024-02-11 02:04:44 +00:00
export EXTRA_ARGS
2023-12-11 13:19:25 +00:00
export SERVER
export FAMILY=HYBRID
exec "${SCRIPTS:-/}start-spiget" "$@"