3 fillTemplateProperties() {
4 source /tmp/vid/localize_war.sh $1 || {
5 echo "ERROR: Localization script failed"
10 deployWarOnTomcatManually() {
11 cd /usr/local/tomcat/webapps/
14 jar -xf /tmp/vid/stage/vid.war
17 deployWarOnTomcatManually
19 TEMPLATES_BASE_DIR=/usr/local/tomcat/webapps/vid/WEB-INF
21 fillTemplateProperties ${TEMPLATES_BASE_DIR}
23 # Set CATALINA_OPTS if not defined previously
24 # Enables late-evaluation of env variables, such as VID_KEYSTORE_PASSWORD
25 : "${CATALINA_OPTS:=-Dvid.keystore.password=${VID_KEYSTORE_PASSWORD} -Dvid.keyalias=vid@vid.onap.org -Dvid.keystore.filename=${VID_KEYSTORE_FILENAME} -Dcom.att.eelf.logging.file=logback.xml -Dcom.att.eelf.logging.path=/tmp}"
26 echo "CATALINA_OPTS: ${CATALINA_OPTS}"