actually adding the files to the initial commit
[vid.git] / deliveries / src / main / scripts / localize.sh
1 #!/bin/bash
2
3 #Extract the WAR so it can be customized by the localization script
4 cd /tmp/vid/stage
5 jar -xf vid.war
6
7 source /tmp/vid/localize_war.sh || {
8         echo "ERROR: Localization script failed"
9         exit 2
10 }
11
12 #Create the customized WAR and deploy it to Tomcat
13 mkdir -p /tmp/vid/deployed
14 cd /tmp/vid/stage
15 jar -cvf /tmp/vid/deployed/vid.war .
16 cd
17 mv -f /tmp/vid/deployed/vid.war /usr/local/tomcat/webapps
18 catalina.sh run