DR695H | 13ce055 | 2017-02-07 13:11:03 -0500 | [diff] [blame^] | 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 |