From 326568b2dd4a079b023b977b9f96c321f5f2669d Mon Sep 17 00:00:00 2001
From: Matthew Swift <matthew.swift@forgerock.com>
Date: Wed, 29 Jun 2016 20:31:10 +0000
Subject: [PATCH] OPENDJ-3187 Remove support for upgrading from versions older than 2.6.0
---
opendj-server-legacy/src/main/java/org/opends/server/tools/upgrade/UpgradeTasks.java | 55 -------------------------------------------------------
1 files changed, 0 insertions(+), 55 deletions(-)
diff --git a/opendj-server-legacy/src/main/java/org/opends/server/tools/upgrade/UpgradeTasks.java b/opendj-server-legacy/src/main/java/org/opends/server/tools/upgrade/UpgradeTasks.java
index e219179..2059687 100644
--- a/opendj-server-legacy/src/main/java/org/opends/server/tools/upgrade/UpgradeTasks.java
+++ b/opendj-server-legacy/src/main/java/org/opends/server/tools/upgrade/UpgradeTasks.java
@@ -830,61 +830,6 @@
}
/**
- * Renames the SNMP security config file if it exists. Since 2.5.0.7466 this
- * file has been renamed.
- *
- * @param summary
- * The summary of this upgrade task.
- * @return An upgrade task which renames the old SNMP security config file if
- * it exists.
- */
- public static UpgradeTask renameSnmpSecurityConfig(final LocalizableMessage summary)
- {
- return new AbstractUpgradeTask()
- {
- @Override
- public void perform(final UpgradeContext context) throws ClientException
- {
- /*
- * Snmp config file contains old name in old version(like 2.4.5), in
- * order to make sure the process will still work after upgrade, we need
- * to rename it - only if it exists.
- */
- final File snmpDir = UpgradeUtils.configSnmpSecurityDirectory;
- if (snmpDir.exists())
- {
- ProgressNotificationCallback pnc = new ProgressNotificationCallback(INFORMATION, summary, 0);
- try
- {
- final File oldSnmpConfig = new File(snmpDir, "opends-snmp.security");
- if (oldSnmpConfig.exists())
- {
- context.notifyProgress(pnc.setProgress(20));
- logger.debug(summary);
-
- final File snmpConfig = new File(snmpDir, "opendj-snmp.security");
- FileManager.rename(oldSnmpConfig, snmpConfig);
-
- context.notifyProgress(pnc.setProgress(100));
- }
- }
- catch (final Exception ex)
- {
- LocalizableMessage msg = ERR_UPGRADE_RENAME_SNMP_SECURITY_CONFIG_FILE.get(ex.getMessage());
- throw unexpectedException(context, pnc, msg);
- }
- }
- }
-
- @Override
- public String toString()
- {
- return String.valueOf(summary);
- }
- };
- }
-
- /**
* Removes the specified file from the file-system.
*
* @param file
--
Gitblit v1.10.0