mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

lutoff
25.31.2009 16c0882bb52f55e15b5c127e1c567f8ada423821
Fix for issue #3802 (script launcher return codes are not correct)

we now unify _script-util.sh return code: we return 0
(success) or 1 (error).

Additional error messages have been also added in order to send
a better feedback to the user.
2 files modified
9 ■■■■ changed files
opends/resource/bin/_script-util.sh 2 ●●● patch | view | raw | blame | history
opends/src/messages/messages/tools.properties 7 ●●●●● patch | view | raw | blame | history
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
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