if (httpHost != null)
props.put(HttpConstants.HTTP_HOST, httpHost);
if (httpsHost != null)
- props.put(HttpConstants.HTTPS_HOST, httpHost);
+ props.put(HttpConstants.HTTPS_HOST, httpsHost);
if (webSocketEnabled != null)
if (webSocketEnabled.equals("true"))
try {
FileUtils.copyInputStreamToFile(InitUtils.class.getResourceAsStream(demoBaseDn + ".ldif"),
businessRolesFile);
- FileUtils.copyInputStreamToFile(
- InitUtils.class.getResourceAsStream("example-ou=roles,ou=node.ldif"), systemRolesFile);
+ if (!systemRolesFile.exists())
+ FileUtils.copyInputStreamToFile(
+ InitUtils.class.getResourceAsStream("example-ou=roles,ou=node.ldif"), systemRolesFile);
} catch (IOException e) {
throw new CmsException("Cannot copy demo resources", e);
}