From 931bbbfa71839678ca6ba075f8b261bcf62e26bc Mon Sep 17 00:00:00 2001
From: jvergara <jvergara@localhost>
Date: Wed, 07 Nov 2007 14:39:27 +0000
Subject: [PATCH] Update the code of the installer and Replication CLI main to be able to handle the case where an instance was uninstalled (but the registry not properly cleaned up) and we want to register it again. Instead of failing with an 'already registered' error, the code will try to update the registration information in the ADS.
---
opends/src/quicksetup/org/opends/quicksetup/installer/Installer.java | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/opends/src/quicksetup/org/opends/quicksetup/installer/Installer.java b/opends/src/quicksetup/org/opends/quicksetup/installer/Installer.java
index d12972b..dc7bf31 100644
--- a/opends/src/quicksetup/org/opends/quicksetup/installer/Installer.java
+++ b/opends/src/quicksetup/org/opends/quicksetup/installer/Installer.java
@@ -2201,7 +2201,9 @@
ADSContextException.ErrorType.ALREADY_REGISTERED)
{
notifyListeners(getFormattedWarning(
- INFO_ADMINISTRATOR_ALREADY_REGISTERED.get()));
+ INFO_ADMINISTRATOR_ALREADY_REGISTERED.get()));
+ adsContext.unregisterServer(server.getAdsProperties());
+ adsContext.registerServer(server.getAdsProperties());
}
else
{
--
Gitblit v1.10.0