2017-11-01 05:42:44 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
2021-10-17 03:32:34 +00:00
|
|
|
: "${FORGEVERSION:=RECOMMENDED}"
|
|
|
|
|
|
|
|
# shellcheck source=start-utils
|
|
|
|
. "${SCRIPTS:-$(dirname "$0")}/start-utils"
|
2021-03-11 22:21:59 +00:00
|
|
|
isDebugging && set -x
|
2017-11-01 05:42:44 +00:00
|
|
|
|
2022-08-14 18:34:08 +00:00
|
|
|
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
|
2017-11-01 05:42:44 +00:00
|
|
|
fi
|
|
|
|
|
2022-08-14 18:34:08 +00:00
|
|
|
# grab SERVER and export it
|
|
|
|
set -a
|
|
|
|
source /data/.run-forge.env
|
|
|
|
set +a
|
|
|
|
|
2021-12-11 02:50:40 +00:00
|
|
|
export FAMILY=FORGE
|
2022-01-29 20:53:34 +00:00
|
|
|
|
2021-10-20 20:36:02 +00:00
|
|
|
exec "${SCRIPTS:-/}start-setupWorld" "$@"
|