Skip to content

Commit

Permalink
fix: 更正CNI plugins二进制文件下载名[issue 524]
Browse files Browse the repository at this point in the history
根据CNI plugins github[链接][1]所示,其二进制文件名格式为:`cni-plugins-amd64-${CNI_VER}.tgz`,而非:`cni-${CNI_VER}.tgz`,因此进行更正。

[1]: https://github.com/containernetworking/plugins/releases

Issue easzlab#524
Close easzlab#524
  • Loading branch information
zhoufwind committed Apr 22, 2019
1 parent 0251da2 commit e264b33
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions down/download.sh
Original file line number Diff line number Diff line change
Expand Up @@ -93,14 +93,14 @@ else
fi

### prepare cni plugins, needed by flannel;
if [ -f "cni-${CNI_VER}.tgz" ]; then
if [ -f "cni-plugins-amd64-${CNI_VER}.tgz" ]; then
echo "\nextracting cni plugins binaries..."
tar zxf cni-${CNI_VER}.tgz
tar zxf cni-plugins-amd64-${CNI_VER}.tgz
mv -f bridge ../bin
mv -f flannel ../bin
mv -f host-local ../bin
mv -f loopback ../bin
mv -f portmap ../bin
else
echo Please download 'cni-${CNI_VER}.tgz' first
echo Please download 'cni-plugins-amd64-${CNI_VER}.tgz' first
fi

0 comments on commit e264b33

Please sign in to comment.