summaryrefslogtreecommitdiffstats
path: root/deliveries/src/main/scripts/localize.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/localize.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/localize.sh')
-rwxr-xr-xdeliveries/src/main/scripts/localize.sh31
1 files changed, 0 insertions, 31 deletions
diff --git a/deliveries/src/main/scripts/localize.sh b/deliveries/src/main/scripts/localize.sh
deleted file mode 100755
index e4b8c220d..000000000
--- a/deliveries/src/main/scripts/localize.sh
+++ /dev/null
@@ -1,31 +0,0 @@
-#!/bin/bash
-
-fillTemplateProperties() {
- source /tmp/vid/localize_war.sh $1 || {
- echo "ERROR: Localization script failed"
- exit 2
- }
-}
-
-createWritableLogbackConfig() {
- # Create logback.xml in /tmp/vid/
- # /tmp/logback.xml is owned by root and unmodifiable
- cp -f /tmp/logback.xml /tmp/vid/logback.xml
-}
-
-if [ "${ON_KUBERNETES}" = "TRUE" ]
-then
- echo "We're running on Kubernetes, preconfiguration is already handled"
-else
- createWritableLogbackConfig
- TEMPLATES_BASE_DIR=/usr/local/tomcat/webapps/vid/WEB-INF
- fillTemplateProperties ${TEMPLATES_BASE_DIR}
-fi
-
-# 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