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

jvergara
26.21.2009 0c0047256e2756004f0f5f88d97f721ea1486ecf
Fix for issue 3903 (upgrade using QuickSetup: "Start Server when the Upgrade has Completed" option doesn't work)

Only initialize the value of the startServer property in the user data when we are in CLI mode. The Web Start version of the upgrader already updates it properly.
1 files modified
8 ■■■■ changed files
opendj-sdk/opends/src/quicksetup/org/opends/quicksetup/upgrader/Upgrader.java 8 ●●●● patch | view | raw | blame | history
opendj-sdk/opends/src/quicksetup/org/opends/quicksetup/upgrader/Upgrader.java
@@ -813,8 +813,14 @@
      checkAbort();
      getUserData().setStartServer(
      if (!Utils.isWebStart())
      {
        // The command-line upgrade has not the option of leaving the server
        // started or stopped, so we must leave it as it was at the beginning of
        // the upgrade.
        getUserData().setStartServer(
          getInstallation().getStatus().isServerRunning());
      }
      try {
        LOG.log(Level.INFO, "initializing upgrade");