mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-06 21:00:22 +00:00
Bug fixes
This commit is contained in:
parent
3c89137dfb
commit
aa74064998
@ -384,8 +384,6 @@ public class CentralRepoDbManager {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void setupPostgresDb(CentralRepoDbChoice choice) throws CentralRepoException {
|
public void setupPostgresDb(CentralRepoDbChoice choice) throws CentralRepoException {
|
||||||
assert UserPreferences.getIsMultiUserModeEnabled();
|
|
||||||
|
|
||||||
selectedDbChoice = choice;
|
selectedDbChoice = choice;
|
||||||
DatabaseTestResult curStatus = testStatus();
|
DatabaseTestResult curStatus = testStatus();
|
||||||
if (curStatus == DatabaseTestResult.DB_DOES_NOT_EXIST) {
|
if (curStatus == DatabaseTestResult.DB_DOES_NOT_EXIST) {
|
||||||
|
@ -105,12 +105,14 @@ public class RegressionTest extends TestCase {
|
|||||||
Timeouts.setDefault("ComponentOperator.WaitComponentTimeout", 1000000);
|
Timeouts.setDefault("ComponentOperator.WaitComponentTimeout", 1000000);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
if (Boolean.parseBoolean(System.getProperty("isMultiUser"))) {
|
||||||
CentralRepoDbManager manager = new CentralRepoDbManager();
|
CentralRepoDbManager manager = new CentralRepoDbManager();
|
||||||
manager.getDbSettingsPostgres().setHost(System.getProperty("crHost"));
|
manager.getDbSettingsPostgres().setHost(System.getProperty("crHost"));
|
||||||
manager.getDbSettingsPostgres().setPort(Integer.parseInt(System.getProperty("crPort")));
|
manager.getDbSettingsPostgres().setPort(Integer.parseInt(System.getProperty("crPort")));
|
||||||
manager.getDbSettingsPostgres().setUserName(System.getProperty("crUserName"));
|
manager.getDbSettingsPostgres().setUserName(System.getProperty("crUserName"));
|
||||||
manager.getDbSettingsPostgres().setPassword(System.getProperty("crPassword"));
|
manager.getDbSettingsPostgres().setPassword(System.getProperty("crPassword"));
|
||||||
manager.setupPostgresDb(CentralRepoDbChoice.POSTGRESQL_CUSTOM);
|
manager.setupPostgresDb(CentralRepoDbChoice.POSTGRESQL_CUSTOM);
|
||||||
|
}
|
||||||
} catch (CentralRepoException ex) {
|
} catch (CentralRepoException ex) {
|
||||||
throw new RuntimeException("Error setting up multi user CR", ex);
|
throw new RuntimeException("Error setting up multi user CR", ex);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user