From d805a36cc67fa38d11eda2f09f661ba21c6add70 Mon Sep 17 00:00:00 2001
From: lutoff <lutoff@localhost>
Date: Tue, 10 Jul 2007 08:00:47 +0000
Subject: [PATCH] fix for issue #1865 (upgrade -V error) In case on -V option, BuildExtractor will exit with a pre-defined return code defined in QuickSetupCli.java (let's say 50). Script will test this specific return value to check if the non-null return code is an error. In case of none null return code, the upgradeLauncher will not be called. 

---
 opends/resource/setup |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)

diff --git a/opends/resource/setup b/opends/resource/setup
index e97bc84..e35fd7a 100755
--- a/opends/resource/setup
+++ b/opends/resource/setup
@@ -120,3 +120,12 @@
 # Launch the setup process.
 "${JAVA_BIN}" org.opends.quicksetup.installer.InstallLauncher -P setup "${@}"
 
+# return part
+RETURN_CODE=$?
+if test ${RETURN_CODE} -eq 50
+then
+  # Version info was on requested
+  exit 0
+else
+  exit ${RETURN_CODE}
+fi
\ No newline at end of file

--
Gitblit v1.10.0