Merge pull request #817 from gmemstr/patch-1

Allow for valid hibernate environment variables
This commit is contained in:
Kavin 2025-09-28 01:50:37 +05:30 committed by GitHub
commit c5921f6b70
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -166,8 +166,8 @@ public class Constants {
S3_CLIENT = null; S3_CLIENT = null;
} }
System.getenv().forEach((key, value) -> { System.getenv().forEach((key, value) -> {
if (key.startsWith("hibernate")) if (key.startsWith("HIBERNATE"))
hibernateProperties.put(key, value); hibernateProperties.put(key.replace("__", ".").toLowerCase(), 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");