aboutsummaryrefslogtreecommitdiffstats
path: root/epsdk-app-onap/src/main/swm/install/preproc/pre_proc
blob: a09a9c46fe8680e007a19731a683237c1eebba12 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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