File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change 1212fi
1313URL_DIR_NAME=zookeeper-${LIBZOOKEEPER_VERSION}
1414LIBZOOKEEPER_PREFIX=${HOME} /lib${URL_DIR_NAME}
15+ URL_PREFIX=http://apache.mirrors.lucidnetworks.net/zookeeper
1516
1617TRAVIS_SCRIPT_DIR=$( cd $( dirname $0 ) ; pwd)
1718
18- wget http://apache.mirrors.lucidnetworks.net/zookeeper /${URL_DIR_NAME} /${PACKAGE_NAME} .tar.gz || exit 1
19+ wget ${URL_PREFIX} /${URL_DIR_NAME} /${PACKAGE_NAME} .tar.gz || exit 1
1920tar xvf ${PACKAGE_NAME} .tar.gz || exit 1
2021
2122if [ ${LIBZOOKEEPER_MAJOR_VERSION} -ge 3 -a ${LIBZOOKEEPER_MINOR_VERSION} -ge 5 ]; then
22- cd ${PACKAGE_NAME}
23+ if [ ${LIBZOOKEEPER_PATCH_VERSION} -ge 5 ]; then
24+ wget ${URL_PREFIX} /${URL_DIR_NAME} /${PACKAGE_NAME} -bin.tar.gz || exit 1
25+ tar xvf ${PACKAGE_NAME} -bin.tar.gz || exit 1
26+ cd ${PACKAGE_NAME} -bin
27+ else
28+ cd ${PACKAGE_NAME}
29+ fi
2330 ${TRAVIS_SCRIPT_DIR} /init_zk_instances.sh || exit 1
2431 ${TRAVIS_SCRIPT_DIR} /launch_zk_instances.sh || exit 1
2532 cd ..
You can’t perform that action at this time.
0 commit comments