Hibernate environment variables double underscore to period

This commit is contained in:
Gabriel Simmer 2024-07-11 18:44:21 +01:00 committed by GitHub
parent 3691349d8b
commit 643d7ad4d5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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