From b3449a69239cb7565515f92ecde70f2096932185 Mon Sep 17 00:00:00 2001
From: jvergara <jvergara@localhost>
Date: Tue, 11 Aug 2009 22:39:18 +0000
Subject: [PATCH] Fix a warning message displayed to the user when all the base DN's are disabled but not the replication server. Display the message only if the replication server is actually configured in the server.
---
opends/src/server/org/opends/server/tools/dsreplication/ReplicationCliMain.java | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/opends/src/server/org/opends/server/tools/dsreplication/ReplicationCliMain.java b/opends/src/server/org/opends/server/tools/dsreplication/ReplicationCliMain.java
index 652dee4..68ed4eb 100644
--- a/opends/src/server/org/opends/server/tools/dsreplication/ReplicationCliMain.java
+++ b/opends/src/server/org/opends/server/tools/dsreplication/ReplicationCliMain.java
@@ -3571,7 +3571,8 @@
}
if (!isInteractive() && !uData.disableReplicationServer() &&
- !uData.disableAll() && disableAllBaseDns(ctx, uData))
+ !uData.disableAll() && disableAllBaseDns(ctx, uData) &&
+ hasReplicationPort(ctx))
{
// Inform the user that the replication server will not be disabled.
// Inform also of the user of the disableReplicationServerArg
--
Gitblit v1.10.0