diff options
Diffstat (limited to 'vid/src/main/swm/install/preproc')
-rw-r--r-- | vid/src/main/swm/install/preproc/pre_proc | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/vid/src/main/swm/install/preproc/pre_proc b/vid/src/main/swm/install/preproc/pre_proc new file mode 100644 index 00000000..f4eb9b11 --- /dev/null +++ b/vid/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 + |