Skip to content

Commit

Permalink
Update SubsystemCLI.getEngineConfig()
Browse files Browse the repository at this point in the history
The SubsystemCLI.getEngineConfig() has been updated to use
the proper subsystem conf folder instead of the backward
compatibility link.
  • Loading branch information
edewata committed Nov 16, 2023
1 parent e94640d commit ae6e19e
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@ protected void initializeTomcatJSS() throws Exception {

protected EngineConfig getEngineConfig(String subsystem) throws Exception {

String instanceDir = CMS.getInstanceDir();
String configDir = instanceDir + File.separator + subsystem;
String configFile = configDir + File.separator + "conf" + File.separator + CMS.CONFIG_FILE;
// use subsystem conf folder: /var/lib/pki/<instance>/conf/<subsystem>
String confDir = CMS.getInstanceDir() + File.separator + "conf" + File.separator + subsystem;
String configFile = confDir + File.separator + CMS.CONFIG_FILE;
logger.debug("{}: Loading {}", getClass().getSimpleName(), configFile);

ConfigStorage storage = new FileConfigStorage(configFile);
Expand Down

0 comments on commit ae6e19e

Please sign in to comment.