From 49b91609253cd6122f4773193f8183bc9efe092b Mon Sep 17 00:00:00 2001
From: lutoff <lutoff@localhost>
Date: Wed, 12 Nov 2008 09:48:43 +0000
Subject: [PATCH] Fix for issue #3582 (Revert fails with "no valid existing backup locations")

---
 opendj-sdk/opends/src/quicksetup/org/opends/quicksetup/upgrader/Reverter.java |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)

diff --git a/opendj-sdk/opends/src/quicksetup/org/opends/quicksetup/upgrader/Reverter.java b/opendj-sdk/opends/src/quicksetup/org/opends/quicksetup/upgrader/Reverter.java
index 770882a..eb90c3a 100644
--- a/opendj-sdk/opends/src/quicksetup/org/opends/quicksetup/upgrader/Reverter.java
+++ b/opendj-sdk/opends/src/quicksetup/org/opends/quicksetup/upgrader/Reverter.java
@@ -766,9 +766,7 @@
       Set<String> cs = new HashSet<String>(Arrays.asList(children));
 
       // TODO:  more testing of file dir
-      String installPath = System.getProperty("INSTALL_ROOT");
-      String instancePath = System.getProperty("INSTANCE_ROOT");
-      if (installPath.equals(instancePath))
+      if (installation.instanceAndInstallInSameDir)
       {
       isFilesDir = cs.contains(CONFIG_PATH_RELATIVE) &&
               cs.contains(LIBRARIES_PATH_RELATIVE);

--
Gitblit v1.10.0