central repo fix

This commit is contained in:
Greg DiCristofaro 2022-06-02 19:27:33 -04:00
parent adf5db6276
commit 2b46b377ff

View File

@ -128,8 +128,10 @@ public class Installer extends ModuleInstall {
} }
} }
// get the new relative path to store
String newRelPath = PlatformUtil.getUserDirectory().toPath().relativize(Paths.get(CentralRepoSettings.getInstance().getDefaultDbPath())).toString();
// update path settings accordingly // update path settings accordingly
prevSettings.put(CentralRepoSettings.getInstance().getDatabasePathKey(), CentralRepoSettings.getInstance().getDefaultDbPath()); prevSettings.put(CentralRepoSettings.getInstance().getDatabasePathKey(), newRelPath);
} }
// copy settings // copy settings