mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

jvergara
04.33.2008 2c08f52009a57edff7b3a51d1966057b121380f7
opends/src/quicksetup/org/opends/quicksetup/upgrader/Upgrader.java
@@ -1546,12 +1546,18 @@
  private void initialize() throws ApplicationException {
    try {
      BuildInformation fromVersion = getCurrentBuildInformation();
      BuildInformation toVersion = getStagedBuildInformation();
      if (fromVersion.equals(toVersion))
      {
        throw new ApplicationException(ReturnCode.APPLICATION_ERROR,
            INFO_UPGRADE_ORACLE_SAME_VERSION.get(
                fromVersion.toString()), null);
      }
      if (getInstallation().getStatus().isServerRunning()) {
        new ServerController(getInstallation()).stopServer(true);
      }
      BuildInformation fromVersion = getCurrentBuildInformation();
      BuildInformation toVersion = getStagedBuildInformation();
      this.historicalOperationId =
              writeInitialHistoricalRecord(fromVersion, toVersion);