You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kylin.apache.org by li...@apache.org on 2015/02/12 06:43:01 UTC

[11/50] incubator-kylin git commit: fix script

fix script


Project: http://git-wip-us.apache.org/repos/asf/incubator-kylin/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-kylin/commit/20e58b0e
Tree: http://git-wip-us.apache.org/repos/asf/incubator-kylin/tree/20e58b0e
Diff: http://git-wip-us.apache.org/repos/asf/incubator-kylin/diff/20e58b0e

Branch: refs/heads/inverted-index
Commit: 20e58b0eb22219dcf6e9122c717de9b14eef4c78
Parents: 79765ba
Author: qianhao.zhou <qi...@ebay.com>
Authored: Tue Feb 10 17:20:45 2015 +0800
Committer: qianhao.zhou <qi...@ebay.com>
Committed: Tue Feb 10 17:20:45 2015 +0800

----------------------------------------------------------------------
 script/download-tomcat.sh | 16 +++++++++++++---
 1 file changed, 13 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-kylin/blob/20e58b0e/script/download-tomcat.sh
----------------------------------------------------------------------
diff --git a/script/download-tomcat.sh b/script/download-tomcat.sh
index a01b132..3afc0df 100644
--- a/script/download-tomcat.sh
+++ b/script/download-tomcat.sh
@@ -5,10 +5,20 @@ cd ${dir}/..
 
 rm apache-tomcat-7.0.57.tar.gz
 rm -rf tomcat
-wget http://mirror.sdunix.com/apache/tomcat/tomcat-7/v7.0.57/bin/apache-tomcat-7.0.57.tar.gz
 
-tar -zxvf apache-tomcat-7.0.57.tar.gz
-mv apache-tomcat-7.0.57 tomcat
+if [ ! -f "apache-tomcat-7.0.59.tar.gz" ]
+then
+    wget http://mirror.sdunix.com/apache/tomcat/tomcat-7/v7.0.57/bin/apache-tomcat-7.0.59.tar.gz
+else
+    if [ ! `md5sum apache-tomcat-7.0.59.tar.gz | awk '{print $1}'` -eq "ec570258976edf9a833cd88fd9220909" ]
+    then
+        rm apache-tomcat-7.0.59.tar.gz
+        wget http://mirror.sdunix.com/apache/tomcat/tomcat-7/v7.0.57/bin/apache-tomcat-7.0.59.tar.gz
+    fi
+fi
+
+tar -zxvf apache-tomcat-7.0.59.tar.gz
+mv apache-tomcat-7.0.59 tomcat
 rm -rf tomcat/webapps/*
 
 mv tomcat/conf/server.xml tomcat/conf/server.xml.bak