From 13ce0552dc7156b6e3e226c00295705f27780a40 Mon Sep 17 00:00:00 2001 From: DR695H Date: Tue, 7 Feb 2017 13:11:03 -0500 Subject: actually adding the files to the initial commit Change-Id: I2f0c09692c2ae70be61b8bb552fd1bd2983eb661 Signed-off-by: DR695H --- deliveries/src/main/scripts/localize.sh | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 deliveries/src/main/scripts/localize.sh (limited to 'deliveries/src/main/scripts/localize.sh') diff --git a/deliveries/src/main/scripts/localize.sh b/deliveries/src/main/scripts/localize.sh new file mode 100644 index 00000000..3966f702 --- /dev/null +++ b/deliveries/src/main/scripts/localize.sh @@ -0,0 +1,18 @@ +#!/bin/bash + +#Extract the WAR so it can be customized by the localization script +cd /tmp/vid/stage +jar -xf vid.war + +source /tmp/vid/localize_war.sh || { + echo "ERROR: Localization script failed" + exit 2 +} + +#Create the customized WAR and deploy it to Tomcat +mkdir -p /tmp/vid/deployed +cd /tmp/vid/stage +jar -cvf /tmp/vid/deployed/vid.war . +cd +mv -f /tmp/vid/deployed/vid.war /usr/local/tomcat/webapps +catalina.sh run -- cgit 1.2.3-korg