mirror of
https://github.com/itzg/docker-minecraft-server.git
synced 2026-05-23 04:05:26 +00:00
Restore FORGE_INSTALLER (again) using mc-image-helper (#1880)
This commit is contained in:
@@ -7,16 +7,31 @@
|
|||||||
. "${SCRIPTS:-$(dirname "$0")}/start-utils"
|
. "${SCRIPTS:-$(dirname "$0")}/start-utils"
|
||||||
isDebugging && set -x
|
isDebugging && set -x
|
||||||
|
|
||||||
if ! mc-image-helper install-forge \
|
if [[ ${FORGE_INSTALLER} ]]; then
|
||||||
--output-directory=/data \
|
if ! mc-image-helper install-forge \
|
||||||
--results-file=/data/.run-forge.env \
|
--output-directory=/data \
|
||||||
--minecraft-version="${VANILLA_VERSION}" \
|
--results-file=/data/.run-forge.env \
|
||||||
--forge-version="${FORGE_VERSION}" \
|
--minecraft-version="${VANILLA_VERSION}" \
|
||||||
--force-reinstall="${FORGE_FORCE_REINSTALL}"; then
|
--forge-installer="${FORGE_INSTALLER}" \
|
||||||
log "ERROR failed to install forge"
|
--force-reinstall="${FORGE_FORCE_REINSTALL}"; then
|
||||||
exit 1
|
log "ERROR failed to install Forge given installer ${FORGE_INSTALLER}"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
else
|
||||||
|
if ! mc-image-helper install-forge \
|
||||||
|
--output-directory=/data \
|
||||||
|
--results-file=/data/.run-forge.env \
|
||||||
|
--minecraft-version="${VANILLA_VERSION}" \
|
||||||
|
--forge-version="${FORGE_VERSION}" \
|
||||||
|
--force-reinstall="${FORGE_FORCE_REINSTALL}"; then
|
||||||
|
log "ERROR failed to install Forge"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
# grab SERVER and export it
|
# grab SERVER and export it
|
||||||
set -a
|
set -a
|
||||||
source /data/.run-forge.env
|
source /data/.run-forge.env
|
||||||
|
|||||||
Reference in New Issue
Block a user