aboutsummaryrefslogtreecommitdiffstats
path: root/deliveries/src/main/scripts/localize.sh
diff options
context:
space:
mode:
Diffstat (limited to 'deliveries/src/main/scripts/localize.sh')
-rw-r--r--deliveries/src/main/scripts/localize.sh18
1 files changed, 18 insertions, 0 deletions
diff --git a/deliveries/src/main/scripts/localize.sh b/deliveries/src/main/scripts/localize.sh
new file mode 100644
index 000000000..3966f7023
--- /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