Author: tchemit Date: 2014-05-03 10:08:12 +0200 (Sat, 03 May 2014) New Revision: 67 Url: http://forge.codelutin.com/projects/adminsys/repository/revisions/67 Log: refs #4153 Modified: scripts/redmine-tools/update-tomcat-7.sh Modified: scripts/redmine-tools/update-tomcat-7.sh =================================================================== --- scripts/redmine-tools/update-tomcat-7.sh 2014-05-03 08:07:09 UTC (rev 66) +++ scripts/redmine-tools/update-tomcat-7.sh 2014-05-03 08:08:12 UTC (rev 67) @@ -16,7 +16,7 @@ DEBUG=false #MIRROR=http://mirrors.linsrv.net/apache/tomcat -MIRROR=http://www.carfab.com/apachesoftware +MIRROR=http://www.carfab.com/apachesoftware/tomcat TARGET_DIR=/opt/repository LINK_DIR=/opt @@ -43,7 +43,7 @@ # @param $2 tomcat version 6, 7 or 8 getLastRelease () { local VERSION=$2 - local result=$(curl -s $MIRROR/tomcat/tomcat-$VERSION/ |grep "href=.v" |sed -re 's/.*>v([0-9]+.[0-9]+.[0-9]+).*/\1/') + local result=$(curl -s $MIRROR/tomcat-$VERSION/ |grep "href=.v" |sed -re 's/.*>v([0-9]+.[0-9]+.[0-9]+).*/\1/') debug "getLastRelease: $result" eval $1=\$result }
participants (1)
-
tchemit@users.forge.codelutin.com