mirror of
https://github.com/itzg/docker-minecraft-server
synced 2025-01-10 11:18:43 +00:00
26 lines
616 B
Bash
26 lines
616 B
Bash
#!/bin/bash
|
|
|
|
: "${NEOFORGE_VERSION:=latest}"
|
|
: "${NEOFORGE_FORCE_REINSTALL:=false}}"
|
|
|
|
# shellcheck source=start-utils
|
|
. "${SCRIPTS:-$(dirname "$0")}/start-utils"
|
|
isDebugging && set -x
|
|
|
|
resultsFile=/data/.run-neoforge.env
|
|
|
|
if ! mc-image-helper install-neoforge \
|
|
--output-directory=/data \
|
|
--results-file=${resultsFile} \
|
|
--minecraft-version="${VERSION}" \
|
|
--neoforge-version="${NEOFORGE_VERSION}" \
|
|
--force-reinstall="${NEOFORGE_FORCE_REINSTALL}"; then
|
|
logError "Failed to install NeoForge"
|
|
exit 1
|
|
fi
|
|
|
|
applyResultsFile ${resultsFile}
|
|
|
|
export FAMILY=FORGE
|
|
|
|
exec "${SCRIPTS:-/}start-setupWorld" "$@"
|