From 5c1f17684822a40b55a7843d809038af11ad0e89 Mon Sep 17 00:00:00 2001 From: Geoff Bourne Date: Sat, 6 Mar 2021 16:03:37 -0600 Subject: [PATCH] Shifted PATH-fix earlier in startup --- start-configuration | 5 +++++ start-minecraftFinalSetup | 5 ----- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/start-configuration b/start-configuration index 602616c6..720e0fb7 100644 --- a/start-configuration +++ b/start-configuration @@ -61,6 +61,11 @@ if [[ $RCON_PASSWORD_FILE ]]; then log "" fi +if ! which java > /dev/null; then + log "Fixing PATH to include java" + PATH="${PATH}:/opt/java/openjdk/bin" +fi + export VERSIONS_JSON=https://launchermeta.mojang.com/mc/game/version_manifest.json case "X$VERSION" in diff --git a/start-minecraftFinalSetup b/start-minecraftFinalSetup index 0e8fb9d3..268a6698 100644 --- a/start-minecraftFinalSetup +++ b/start-minecraftFinalSetup @@ -167,11 +167,6 @@ function copyFilesForCurseForge() { cp -f /data/eula.txt "${FTB_DIR}/" } -if ! which java > /dev/null; then - log "Fixing PATH to include java" - PATH="${PATH}:/opt/java/openjdk/bin" -fi - mcServerRunnerArgs="--stop-duration ${STOP_DURATION:-60}s" if [[ ${TYPE} == "CURSE_INSTANCE" ]]; then if isTrue ${DEBUG_EXEC}; then