Skip to content

Commit

Permalink
Merge pull request #694 from sebslsch/fix-db-password-file-in-upgrade…
Browse files Browse the repository at this point in the history
…-processor

Fix use of `getPropertyOrFile` for database password
  • Loading branch information
nscuro authored Oct 18, 2024
2 parents ec75f89 + d5bdf6f commit 4eb935d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ private Connection createConnection() throws UpgradeException {
final String driver = Config.getInstance().getProperty(Config.AlpineKey.DATABASE_DRIVER);
final String dbUrl = Config.getInstance().getProperty(Config.AlpineKey.DATABASE_URL);
final String user = Config.getInstance().getProperty(Config.AlpineKey.DATABASE_USERNAME);
final String password = Config.getInstance().getProperty(Config.AlpineKey.DATABASE_PASSWORD);
final String password = Config.getInstance().getPropertyOrFile(Config.AlpineKey.DATABASE_PASSWORD);
try {
Class.forName(driver);
return DriverManager.getConnection(dbUrl, user, password);
Expand Down

0 comments on commit 4eb935d

Please sign in to comment.