aboutsummaryrefslogtreecommitdiffstats
path: root/deliveries/src/main/scripts/start.sh
diff options
context:
space:
mode:
authorIkramullah, Ikram (fi241c) <fi241c@att.com>2020-11-05 01:50:41 -0500
committerIkram Ikramullah <ikram@research.att.com>2020-11-05 13:35:42 +0000
commit62bb1f83ba6658184d23bbaa465eb80011de3b2b (patch)
treeab8000203effee1cc0c42551b100e9655b2d570c /deliveries/src/main/scripts/start.sh
parent5889d15158f2e9dd22155ab5693a543c4136fee8 (diff)
Fix for VID-8907.0.2
VID was using sed based replacement for the environment variables exposed to its scripts. This was causing many issus with special characters. This has been fixed. Issue-ID: VID-890 Change-Id: I17fb9621bd5b1e6f4b7278df1fd77c617ce9a26d Signed-off-by: Ikramullah, Ikram <ikram@research.att.com>
Diffstat (limited to 'deliveries/src/main/scripts/start.sh')
-rwxr-xr-xdeliveries/src/main/scripts/start.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/deliveries/src/main/scripts/start.sh b/deliveries/src/main/scripts/start.sh
new file mode 100755
index 000000000..6c76ce3ca
--- /dev/null
+++ b/deliveries/src/main/scripts/start.sh
@@ -0,0 +1,9 @@
+#!/bin/bash
+
+# Set CATALINA_OPTS if not defined previously
+# Enables late-evaluation of env variables, such as VID_KEYSTORE_PASSWORD
+: "${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/vid/}"
+echo "CATALINA_OPTS: ${CATALINA_OPTS}"
+export CATALINA_OPTS
+
+catalina.sh run