aboutsummaryrefslogtreecommitdiffstats
path: root/vid/src/main/swm/install
diff options
context:
space:
mode:
Diffstat (limited to 'vid/src/main/swm/install')
-rw-r--r--vid/src/main/swm/install/postproc/post_proc38
-rw-r--r--vid/src/main/swm/install/preproc/pre_proc18
2 files changed, 0 insertions, 56 deletions
diff --git a/vid/src/main/swm/install/postproc/post_proc b/vid/src/main/swm/install/postproc/post_proc
deleted file mode 100644
index b4c83459..00000000
--- a/vid/src/main/swm/install/postproc/post_proc
+++ /dev/null
@@ -1,38 +0,0 @@
-#!/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
-}
-
-mkdir -p "${TOMCAT_HOME}/temp"
-
-#Extract the WAR so it can be customized by the localization script
-mkdir -p ${ROOT_DIR}/war
-cp "${ROOT_DIR}/lib/vid.war" "${ROOT_DIR}/war/${VID_ENDPOINT_NAME}.war"
-cd "${ROOT_DIR}/war"
-${JAVA_HOME}/bin/jar -xf ${VID_ENDPOINT_NAME}.war
-rm ${ROOT_DIR}/war/${VID_ENDPOINT_NAME}.war
-
-LOCALIZE_SCRIPT=$(dirname "$AFTSWM_ACTIONHANDLER_SCRIPT")/../../common/localize.sh
-
-
-source "${LOCALIZE_SCRIPT}" || {
- echo "ERROR: Localization script failed"
- exit 2
-}
-
-#Create the customized WAR and deploy it to Tomcat
-mkdir -p "${ROOT_DIR}/deployed"
-cd "${ROOT_DIR}/war"
-${JAVA_HOME}/bin/jar -cvf "${ROOT_DIR}/deployed/${VID_ENDPOINT_NAME}.war" .
-cd
-rm -rf "${ROOT_DIR}/war"
-mv -f "${ROOT_DIR}/deployed/${VID_ENDPOINT_NAME}.war" "${TOMCAT_HOME}/webapps"
-
-if [ -f "${TOMCAT_HOME}/bin/startup.sh" ]; then
- "${TOMCAT_HOME}/bin/startup.sh"
-fi
diff --git a/vid/src/main/swm/install/preproc/pre_proc b/vid/src/main/swm/install/preproc/pre_proc
deleted file mode 100644
index f4eb9b11..00000000
--- a/vid/src/main/swm/install/preproc/pre_proc
+++ /dev/null
@@ -1,18 +0,0 @@
-#!/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
-