Skip to content

Commit

Permalink
fix(scripts): change the download source of zookeeper (#526)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhao liwei authored Jul 3, 2020
1 parent f76b3e2 commit 261d6a9
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions scripts/linux/start_zk.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,11 @@ cd $INSTALL_DIR

if [ ! -f zookeeper-3.4.6.tar.gz ]; then
echo "Downloading zookeeper..."
download_url="http://git.n.xiaomi.com/pegasus/packages/raw/master/zookeeper-3.4.6.tar.gz"
download_url="https://github.com/XiaoMi/pegasus-common/releases/download/deps/zookeeper-3.4.6.tar.gz"
wget -T 5 -t 1 $download_url
if [ $? -ne 0 ]; then
download_url="https://github.com/XiaoMi/pegasus-common/releases/download/deps/zookeeper-3.4.6.tar.gz"
wget -T 5 -t 1 $download_url
if [ $? -ne 0 ]; then
echo "ERROR: download zookeeper failed"
exit 1
fi
echo "ERROR: download zookeeper failed"
exit 1
fi
fi

Expand Down

0 comments on commit 261d6a9

Please sign in to comment.