From 3982f4f67314ec37fd9b22ae54049958af777c1b Mon Sep 17 00:00:00 2001 From: jimmydot Date: Sun, 7 May 2017 14:58:24 -0400 Subject: [VID-6] Initial rebase push Change-Id: I9077be9663754d9b22f77c6a7b3109b361b39346 Signed-off-by: jimmydot --- epsdk-app-onap/src/main/swm/install/preproc/pre_proc | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100755 epsdk-app-onap/src/main/swm/install/preproc/pre_proc (limited to 'epsdk-app-onap/src/main/swm/install/preproc/pre_proc') diff --git a/epsdk-app-onap/src/main/swm/install/preproc/pre_proc b/epsdk-app-onap/src/main/swm/install/preproc/pre_proc new file mode 100755 index 000000000..a09a9c46f --- /dev/null +++ b/epsdk-app-onap/src/main/swm/install/preproc/pre_proc @@ -0,0 +1,18 @@ +#!/bin/bash + +DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" +COMMON_SCRIPT=${DIR}/../../common/common.sh + +source "${COMMON_SCRIPT}" || { + echo "ERROR: Common script failed" + exit 1 +} + +if [ -f "${TOMCAT_HOME}/bin/shutdown.sh" ]; then + "${TOMCAT_HOME}/bin/shutdown.sh" + + if [ -d "${TOMCAT_HOME}/webapps/${VID_ENDPOINT_NAME}" ]; then + rm -r "${TOMCAT_HOME}/webapps/${VID_ENDPOINT_NAME}" + fi +fi + -- cgit 1.2.3-korg