Skip to content

Commit c5921f6

Browse files
authored
Merge pull request #817 from gmemstr/patch-1
Allow for valid hibernate environment variables
2 parents 9628774 + 946b376 commit c5921f6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/me/kavin/piped/consts/Constants.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,8 +166,8 @@ public class Constants {
166166
S3_CLIENT = null;
167167
}
168168
System.getenv().forEach((key, value) -> {
169-
if (key.startsWith("hibernate"))
170-
hibernateProperties.put(key, value);
169+
if (key.startsWith("HIBERNATE"))
170+
hibernateProperties.put(key.replace("__", ".").toLowerCase(), value);
171171
});
172172
MATRIX_SERVER = getProperty(prop, "MATRIX_SERVER", "https://matrix-client.matrix.org");
173173
MATRIX_TOKEN = getProperty(prop, "MATRIX_TOKEN");

0 commit comments

Comments
 (0)