blob: b45bba5ef454fd952bcbc2aa4eb29544b75eee66 [file] [log] [blame]
sg481na2ac6782017-09-18 16:35:50 -04001# 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
sg481ndc5fcf12017-09-15 13:06:30 -04003
sg481na2ac6782017-09-18 16:35:50 -04004LIB=/opt/app/aaf/authz-service/lib
sg481ndc5fcf12017-09-15 13:06:30 -04005
sg481na2ac6782017-09-18 16:35:50 -04006ETC=/opt/app/aaf/authz-service/etc
sg481ndc5fcf12017-09-15 13:06:30 -04007DME2REG=/opt/dme2reg
8
9echo "this is LIB" $LIB
10echo "this is ETC" $ETC
11echo "this is DME2REG" $DME2REG
12
13CLASSPATH=$ETC
14for FILE in `find $LIB -name *.jar`; do
15 CLASSPATH=$CLASSPATH:$FILE
16done
sg481na2ac6782017-09-18 16:35:50 -040017
18FILEPATHS="/opt/app/aaf/authz-service/etc/com.osaaf.common.props /opt/app/aaf/authz-service/etc/com.osaaf.common.props"
19for FILEPATH in $FILEPATHS:
20do
21 if [ -e ${FILEPATH} ]; then
22 if [ -z `grep "cassandra.clusters=$CASSANDRA_CLUSTER" $FILEPATH` ]; then
23 echo "cassandra.clusters=$CASSANDRA_CLUSTER" >> $FILEPATH;
24 fi
25 fi
26done
27
28
sg481ndc5fcf12017-09-15 13:06:30 -040029java -classpath $CLASSPATH -DDME2_EP_REGISTRY_CLASS=DME2FS -DAFT_DME2_EP_REGISTRY_FS_DIR=$DME2REG org.onap.aaf.authz.service.AuthAPI
30
sg481na2ac6782017-09-18 16:35:50 -040031# keet it running so we can check fs
32while sleep 2; do echo thinking; done
sg481ndc5fcf12017-09-15 13:06:30 -040033
34