aboutsummaryrefslogtreecommitdiffstats
path: root/epsdk-app-onap/src/main/swm/install/preproc/pre_proc
diff options
context:
space:
mode:
authorjimmydot <jf2512@att.com>2017-05-07 14:58:24 -0400
committerjimmydot <jf2512@att.com>2017-05-07 14:58:24 -0400
commit3982f4f67314ec37fd9b22ae54049958af777c1b (patch)
tree72111b7c13ee7529cce1ea4c8d83c89fdd164450 /epsdk-app-onap/src/main/swm/install/preproc/pre_proc
parent00e0d25933699f9e39c3f0b86c983165a1e3e330 (diff)
[VID-6] Initial rebase push
Change-Id: I9077be9663754d9b22f77c6a7b3109b361b39346 Signed-off-by: jimmydot <jf2512@att.com>
Diffstat (limited to 'epsdk-app-onap/src/main/swm/install/preproc/pre_proc')
-rwxr-xr-xepsdk-app-onap/src/main/swm/install/preproc/pre_proc18
1 files changed, 18 insertions, 0 deletions
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 00000000..a09a9c46
--- /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
+