#!/usr/bin/qsh
# All Rights Reserved * Licensed Materials - Property of IBM
# 5724-I63, 5724-H88, 5655-N01, 5733-W60 (C) COPYRIGHT International Business Machines Corp., 1997, 2011
# US Government Users Restricted Rights - Use, duplication or disclosure
# restricted by GSA ADP Schedule Contract with IBM Corp.
#
# //  DESCRIPTION:
# //      Script file used to process an admin console plugin.

. $(/usr/bin/dirname $0)/setupCmdLine

${JAVA_HOME}/bin/java ${JAVA_PARM} \
  -Dlocal.cell=${WAS_CELL} \
  -Dlocal.node=${WAS_NODE} \
  -Dcom.ibm.ws.management.standalone=true \
  -Dwas.repository.root=${CONFIG_ROOT} \
  -Dpluginprocessor.root=${WAS_INSTALL_ROOT}/systemapps \
  -Dos400.file.create.auth=RX \
  -Dos400.dir.create.auth=RX \
  com.ibm.ws.bootstrap.WSLauncher \
  com.ibm.ws.console.plugin.PluginProcessor "$@"


RETCODE=$?
# Set o=r permission for console-defs.idx
if [ -f ${WAS_INSTALL_ROOT}/systemApps/isclite.ear/isclite.war/WEB-INF/console-defs.idx ]; then
  chmod o=r ${WAS_INSTALL_ROOT}/systemApps/isclite.ear/isclite.war/WEB-INF/console-defs.idx 2> /dev/null
fi
exit $RETCODE
