From 16c0882bb52f55e15b5c127e1c567f8ada423821 Mon Sep 17 00:00:00 2001
From: lutoff <lutoff@localhost>
Date: Wed, 25 Feb 2009 09:31:10 +0000
Subject: [PATCH] Fix for issue #3802 (script launcher return codes are not correct)

---
 opends/resource/bin/_script-util.sh           |    2 +-
 opends/src/messages/messages/tools.properties |    7 +++++++
 2 files changed, 8 insertions(+), 1 deletions(-)

diff --git a/opends/resource/bin/_script-util.sh b/opends/resource/bin/_script-util.sh
index 73ebe21..bca7b44 100644
--- a/opends/resource/bin/_script-util.sh
+++ b/opends/resource/bin/_script-util.sh
@@ -308,7 +308,7 @@
       RETURN_CODE=$?
       if [ ${RETURN_CODE} -ne 0 ]
       then
-	  exit ${RETURN_CODE}
+	  exit 1
       fi
   fi
 fi
diff --git a/opends/src/messages/messages/tools.properties b/opends/src/messages/messages/tools.properties
index 5e510e8..72980f0 100644
--- a/opends/src/messages/messages/tools.properties
+++ b/opends/src/messages/messages/tools.properties
@@ -2445,4 +2445,11 @@
 
 INFO_UNCONFIGURE_USAGE_DESCRIPTION_1656=This utility unsets the instance location
 INFO_DESCRIPTION_CHECK_OPTIONS_1657=Checks options are valid
+FATAL_ERR_INTERNAL_1658=Internal Error: %s
+FATAL_ERR_INSTALL_ROOT_NOT_SPECIFIED_1659=INSTALL_ROOT property not specified
+FATAL_ERR_INSTANCE_ROOT_NOT_SPECIFIED_1660=INSTANCE_ROOT property not specified
+FATAL_ERR_CONFIG_LDIF_NOT_FOUND_1661=The "config.ldif" file is not present in \
+the instance directory %s.\nInstance directory is referenced by %s
+
+
 

--
Gitblit v1.10.0