-
Notifications
You must be signed in to change notification settings - Fork 1.1k
/
startup.sh
executable file
·25 lines (25 loc) · 1002 Bytes
/
startup.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
if [ -f ~/tomcat-8.0.21.zip ] ; then
echo tomcat-8.0.21 prepared
else
echo downloading tomcat8.0.21...
wget http://archive.apache.org/dist/tomcat/tomcat-8/v8.0.21/bin/apache-tomcat-8.0.21.zip
echo tomcat has been downloaded
mv apache-tomcat-8.0.21.zip ~/tomcat-8.0.21.zip
echo copy finished
unzip -d ~/tomcat-8.0.21 ~/tomcat-8.0.21.zip
echo unzip finished
fi
mvn clean install
echo clean install finished
rm -rf ~/tomcat-8.0.21/apache-tomcat-8.0.21/webapps/APDPlat_Web-2.6
echo old webapps directory deleted
cp APDPlat_Web/target/APDPlat_Web-2.6.war ~/tomcat-8.0.21/apache-tomcat-8.0.21/webapps/
echo copy war finished
rm -rf ~/tomcat-8.0.21/apache-tomcat-8.0.21/logs
echo old logs directory deleted
mkdir ~/tomcat-8.0.21/apache-tomcat-8.0.21/logs
echo mkdir logs directory
chmod +x ~/tomcat-8.0.21/apache-tomcat-8.0.21/bin/*.sh
~/tomcat-8.0.21/apache-tomcat-8.0.21/bin/catalina.sh start
echo apdplat has been started
tail -f ~/tomcat-8.0.21/apache-tomcat-8.0.21/logs/*