aboutsummaryrefslogtreecommitdiffstats
path: root/deliveries/src/main/scripts/localize.sh
blob: 3966f70238b7f4bea76a6cc34e96ec8c4480fc4a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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