From 2e08d2c0e9bede644be993ddaa28157c9f156c10 Mon Sep 17 00:00:00 2001
From: Violette Roche-Montane <violette.roche-montane@forgerock.com>
Date: Tue, 07 May 2013 13:50:59 +0000
Subject: [PATCH] svn merge https://svn.forgerock.org/opendj/trunk/opends@8851 https://svn.forgerock.org/opendj/branches/native-packaging@8851 .

---
 opends/resource/bin/_script-util.sh |   49 +------------------------------------------------
 1 files changed, 1 insertions(+), 48 deletions(-)

diff --git a/opends/resource/bin/_script-util.sh b/opends/resource/bin/_script-util.sh
index a931c9d..6d33056 100644
--- a/opends/resource/bin/_script-util.sh
+++ b/opends/resource/bin/_script-util.sh
@@ -24,7 +24,7 @@
 #
 #
 #      Copyright 2008-2010 Sun Microsystems, Inc.
-#      Portions Copyright 2010-2011 ForgeRock AS
+#      Portions Copyright 2010-2013 ForgeRock AS
 
 #
 # Display an error message
@@ -377,50 +377,3 @@
   test_java
 fi
 
-current_user()
-{
-USER=`id`
-CURRENT_IFS=${IFS}
-IFS="()"
-set -- ${USER}
-echo $2
-IFS=${CURRENT_IFS}
-}
-
-if [ "${SCRIPT_NAME}" != "configure" ] &&  [ "${SCRIPT_NAME}" != "unconfigure" ]
-then
-  # Perform check unless it is specified not to do it
-  if [ -z "$NO_CHECK" ]
-  then
-     NO_CHECK=0
-  fi
-  if [ ${NO_CHECK} -eq 0 ]
-  then
-      # No check for --version or --help option
-      isVersionOrHelp $*
-      if [ $? -eq 0 ]
-      then
-        NO_CHECK=1
-      fi
-  fi
-  if [ ${NO_CHECK} -eq 0 ]
-  then
-    set_classpath
-  # Check instance
-      CURRENT_USER="`current_user`"
-      if [ "${CHECK_VERSION}" = "yes" ]
-      then
-	  OPT_CHECK_VERSION="--checkVersion"
-      else
-	  OPT_CHECK_VERSION=""
-      fi
-  # Launch the CheckInstance process.
-      "${OPENDJ_JAVA_BIN}" ${SCRIPT_NAME_ARG} "-DINSTALL_ROOT=${INSTALL_ROOT}" "-DINSTANCE_ROOT=${INSTANCE_ROOT}" org.opends.server.tools.configurator.CheckInstance --currentUser ${CURRENT_USER} ${OPT_CHECK_VERSION}
-  # return part
-      RETURN_CODE=$?
-      if [ ${RETURN_CODE} -ne 0 ]
-      then
-	  exit 1
-      fi
-  fi
-fi

--
Gitblit v1.10.0