From fdab76162a8df690b9fd5cdbbc9d0981c76b2e03 Mon Sep 17 00:00:00 2001 From: Kamil Date: Thu, 29 Aug 2024 21:09:54 +0200 Subject: [PATCH] #3002 Application independent of the CATALINA_HOME system variable: - user jvm parameter catalina.home by System.getProperty; --- src/org/scada_lts/utils/UploadFileUtils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/org/scada_lts/utils/UploadFileUtils.java b/src/org/scada_lts/utils/UploadFileUtils.java index 3e9e37bb36..65c908a079 100644 --- a/src/org/scada_lts/utils/UploadFileUtils.java +++ b/src/org/scada_lts/utils/UploadFileUtils.java @@ -431,7 +431,7 @@ public static String normalizeSeparator(String path) { } private static Path basePath() { - String catalinaHome = System.getenv("CATALINA_HOME"); + String catalinaHome = System.getProperty("catalina.home"); return Paths.get(catalinaHome); }