}
return initialEnvironmentVariables;
}
protected void updateInstallation(Container container, final Installation installation, InstallOptions parameters, InstallTask postInstall) throws Exception {
ProcessConfig processConfig = processManager.loadProcessConfig(parameters);
processConfig.setName(parameters.getName());
ProcessConfig oldConfig = getProcessConfig(installation);
String id = installation.getId();
File installDir = installation.getInstallDir();
InstallContext installContext = new InstallContext(parameters.getContainer(), installDir, true);
if (processConfig != null && !oldConfig.equals(processConfig)) {
installContext.addRestartReason("Environment Variables");
if (LOG.isDebugEnabled()) {
LOG.debug("Requires restart as config has changed: OLD: " + JsonHelper.toJson(oldConfig) + " and NEW: " + JsonHelper.toJson(processConfig));
}
// need to resolve the environment variables first