From a2ab0d75ed73520cd334d8eaf165501eee06a559 Mon Sep 17 00:00:00 2001 From: Geoff Bourne Date: Wed, 10 Feb 2021 14:46:09 -0600 Subject: [PATCH] Fix PATH to include java when needed --- start-minecraftFinalSetup | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/start-minecraftFinalSetup b/start-minecraftFinalSetup index 4ee8b71c..7b227e12 100644 --- a/start-minecraftFinalSetup +++ b/start-minecraftFinalSetup @@ -168,6 +168,11 @@ 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