Hibernate environment variables double underscore to period

This commit is contained in:
Gabriel Simmer 2024-07-11 18:44:21 +01:00 committed by Gabriel Simmer
parent e36bbd0445
commit 946b3762a9
No known key found for this signature in database

View File

@ -167,8 +167,7 @@ public class Constants {
} }
System.getenv().forEach((key, value) -> { System.getenv().forEach((key, value) -> {
if (key.startsWith("HIBERNATE")) if (key.startsWith("HIBERNATE"))
String k = key.replace("_", ".").toLowerCase(); hibernateProperties.put(key.replace("__", ".").toLowerCase(), value);
hibernateProperties.put(k, value);
}); });
MATRIX_SERVER = getProperty(prop, "MATRIX_SERVER", "https://matrix-client.matrix.org"); MATRIX_SERVER = getProperty(prop, "MATRIX_SERVER", "https://matrix-client.matrix.org");
MATRIX_TOKEN = getProperty(prop, "MATRIX_TOKEN"); MATRIX_TOKEN = getProperty(prop, "MATRIX_TOKEN");