Skip to content

Commit 946b376

Browse files
committed
Hibernate environment variables double underscore to period
1 parent e36bbd0 commit 946b376

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,8 +167,7 @@ public class Constants {
167167
}
168168
System.getenv().forEach((key, value) -> {
169169
if (key.startsWith("HIBERNATE"))
170-
String k = key.replace("_", ".").toLowerCase();
171-
hibernateProperties.put(k, value);
170+
hibernateProperties.put(key.replace("__", ".").toLowerCase(), value);
172171
});
173172
MATRIX_SERVER = getProperty(prop, "MATRIX_SERVER", "https://matrix-client.matrix.org");
174173
MATRIX_TOKEN = getProperty(prop, "MATRIX_TOKEN");

0 commit comments

Comments
 (0)