mirror of https://github.com/apache/cloudstack.git
Fix change that broke db.properties.override
This commit is contained in:
parent
449b5daa70
commit
afaf6370dd
|
|
@ -169,6 +169,12 @@ public class DatabaseCreator {
|
|||
System.exit(1);
|
||||
}
|
||||
|
||||
try {
|
||||
TransactionLegacy.initDataSource(dbPropsFile);
|
||||
} catch (IOException e) {
|
||||
e.printStackTrace();
|
||||
System.exit(1);
|
||||
}
|
||||
initDB(dbPropsFile, rootPassword, databases, dryRun);
|
||||
|
||||
// Process sql files
|
||||
|
|
|
|||
|
|
@ -1025,8 +1025,10 @@ public class TransactionLegacy {
|
|||
public static void initDataSource(String propsFileName) throws IOException {
|
||||
Properties dbProps = new Properties();
|
||||
File dbPropsFile = PropertiesUtil.findConfigFile(propsFileName);
|
||||
PropertiesUtil.loadFromFile(dbProps, dbPropsFile);
|
||||
initDataSource(dbProps);
|
||||
if (dbPropsFile != null && dbPropsFile.exists()) {
|
||||
PropertiesUtil.loadFromFile(dbProps, dbPropsFile);
|
||||
initDataSource(dbProps);
|
||||
}
|
||||
}
|
||||
|
||||
public static void initDataSource(Properties dbProps) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue