aboutsummaryrefslogtreecommitdiffstats
path: root/epsdk-app-onap/src/main/swm/install/preproc/pre_proc
diff options
context:
space:
mode:
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 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
+