ThirdPartyCertificateTool.sh 810 B

12345678910111213141516171819202122232425262728293031
  1. #! /bin/sh
  2. #################################################################
  3. ## IBM Confidential
  4. ##
  5. ## OCO Source Materials
  6. ##
  7. ## IBM Cognos Products: CAMCrypto
  8. ##
  9. ## (C) Copyright IBM Corp. 2005, 2022
  10. ##
  11. ## The source code for this program is not published or otherwise
  12. ## divested of its trade secrets, irrespective of what has been
  13. ## deposited with the U.S. Copyright Office.
  14. #################################################################
  15. if [ "$JAVA_HOME" = "" ]
  16. then
  17. JAVA_CMD=../ibm-jre/jre/bin/java
  18. else
  19. JAVA_CMD=$JAVA_HOME/bin/java
  20. fi
  21. echo "Using "$JAVA_CMD
  22. if [ ! -f "$JAVA_CMD" ]
  23. then
  24. echo "Unable to locate a JRE. Please specify a valid JAVA_HOME environment variable."
  25. exit 0
  26. fi
  27. $JAVA_CMD $JAVA_OPTS -Dorg.slf4j.simpleLogger.defaultLogLevel=ERROR -jar ThirdPartyCertificateTool.jar "$@"