(HENGSIN-10) Problems with RUN_ImportAdempiere.sh
- Store DB_Type and DB_PATH as lowercase in AdempiereEnv.properties as what adempiere used to be doing.
This commit is contained in:
parent
5d487f1ad2
commit
b561dde609
|
@ -310,8 +310,9 @@ public class ConfigOracle implements IDatabaseConfig
|
||||||
pass, true, error));
|
pass, true, error));
|
||||||
log.info("OK: Database Server = " + databaseServer);
|
log.info("OK: Database Server = " + databaseServer);
|
||||||
data.setProperty(ConfigurationData.ADEMPIERE_DB_SERVER, databaseServer.getHostName());
|
data.setProperty(ConfigurationData.ADEMPIERE_DB_SERVER, databaseServer.getHostName());
|
||||||
data.setProperty(ConfigurationData.ADEMPIERE_DB_TYPE, data.getDatabaseType());
|
//store as lower case for better script level backward compatibility
|
||||||
data.setProperty(ConfigurationData.ADEMPIERE_DB_PATH, data.getDatabaseType());
|
data.setProperty(ConfigurationData.ADEMPIERE_DB_TYPE, data.getDatabaseType().toLowerCase());
|
||||||
|
data.setProperty(ConfigurationData.ADEMPIERE_DB_PATH, data.getDatabaseType().toLowerCase());
|
||||||
|
|
||||||
// Database Port
|
// Database Port
|
||||||
int databasePort = data.getDatabasePort();
|
int databasePort = data.getDatabasePort();
|
||||||
|
|
|
@ -103,8 +103,9 @@ public class ConfigPostgreSQL implements IDatabaseConfig
|
||||||
pass, true, error));
|
pass, true, error));
|
||||||
log.info("OK: Database Server = " + databaseServer);
|
log.info("OK: Database Server = " + databaseServer);
|
||||||
data.setProperty(ConfigurationData.ADEMPIERE_DB_SERVER, databaseServer.getHostName());
|
data.setProperty(ConfigurationData.ADEMPIERE_DB_SERVER, databaseServer.getHostName());
|
||||||
data.setProperty(ConfigurationData.ADEMPIERE_DB_TYPE, data.getDatabaseType());
|
//store as lower case for better script level backward compatibility
|
||||||
data.setProperty(ConfigurationData.ADEMPIERE_DB_PATH, data.getDatabaseType());
|
data.setProperty(ConfigurationData.ADEMPIERE_DB_TYPE, data.getDatabaseType().toLowerCase());
|
||||||
|
data.setProperty(ConfigurationData.ADEMPIERE_DB_PATH, data.getDatabaseType().toLowerCase());
|
||||||
|
|
||||||
// Database Port
|
// Database Port
|
||||||
int databasePort = data.getDatabasePort();
|
int databasePort = data.getDatabasePort();
|
||||||
|
|
Loading…
Reference in New Issue