mirror of
https://github.com/itzg/docker-minecraft-server
synced 2024-11-10 14:24:28 +00:00
7a85cb5f39
Switched to mc-image-helper
26 lines
578 B
Bash
Executable file
26 lines
578 B
Bash
Executable file
#!/bin/bash
|
|
|
|
: "${FORGEVERSION:=RECOMMENDED}"
|
|
|
|
# shellcheck source=start-utils
|
|
. "${SCRIPTS:-$(dirname "$0")}/start-utils"
|
|
isDebugging && set -x
|
|
|
|
if ! mc-image-helper install-forge \
|
|
--output-directory=/data \
|
|
--results-file=/data/.run-forge.env \
|
|
--minecraft-version="${VANILLA_VERSION}" \
|
|
--forge-version="${FORGEVERSION}" \
|
|
--force-reinstall="${FORCE_REINSTALL:-false}"; then
|
|
log "ERROR failed to install forge"
|
|
exit 1
|
|
fi
|
|
|
|
# grab SERVER and export it
|
|
set -a
|
|
source /data/.run-forge.env
|
|
set +a
|
|
|
|
export FAMILY=FORGE
|
|
|
|
exec "${SCRIPTS:-/}start-setupWorld" "$@"
|