1 # lji: this startup file shadows the existing extry point startup.sh file of the container
2 # because we need to pass in the cassandra cluster location
4 LIB=/opt/app/aaf/authz-service/lib
6 ETC=/opt/app/aaf/authz-service/etc
9 echo "this is LIB" $LIB
10 echo "this is ETC" $ETC
11 echo "this is DME2REG" $DME2REG
14 for FILE in `find $LIB -name *.jar`; do
15 CLASSPATH=$CLASSPATH:$FILE
18 FILEPATHS="/opt/app/aaf/authz-service/etc/com.osaaf.common.props /opt/app/aaf/authz-service/etc/com.osaaf.common.props"
19 for FILEPATH in $FILEPATHS:
21 if [ -e ${FILEPATH} ]; then
22 if [ -z `grep "cassandra.clusters=$CASSANDRA_CLUSTER" $FILEPATH` ]; then
23 echo "cassandra.clusters=$CASSANDRA_CLUSTER" >> $FILEPATH;
29 java -classpath $CLASSPATH -DDME2_EP_REGISTRY_CLASS=DME2FS -DAFT_DME2_EP_REGISTRY_FS_DIR=$DME2REG org.onap.aaf.authz.service.AuthAPI
31 # keet it running so we can check fs
32 while sleep 2; do echo thinking; done