packwiz: re-load LOAD_ENV_FROM_FILE after the installer runs (#4137)

This commit is contained in:
Chip Wolf ‮
2026-06-26 16:18:53 +01:00
committed by GitHub
parent 292b2f757e
commit f1dd0f3d71
2 changed files with 12 additions and 0 deletions
+10
View File
@@ -50,6 +50,16 @@ function handlePackwiz() {
logError "Failed to run packwiz installer"
exit 1
fi
# packwiz may have just downloaded/updated the env file referenced by
# LOAD_ENV_FROM_FILE. The initial load in start-configuration happened
# before this point, so re-load it now to pick up the pack's values for
# the remaining setup stages (server.properties, JVM args, etc.).
if [[ ${LOAD_ENV_FROM_FILE:-} ]]; then
if ! loadEnvFromFile "${LOAD_ENV_FROM_FILE}"; then
exit 1
fi
fi
fi
}