fix: 更正CNI plugins二进制文件下载名[issue 524]

根据CNI plugins github[链接][1]所示,其二进制文件名格式为:`cni-plugins-amd64-${CNI_VER}.tgz`,而非:`cni-${CNI_VER}.tgz`,因此进行更正。

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

Issue #524
Close #524
pull/527/head
Feng Zhou 2019-04-22 18:31:01 +08:00 committed by jmgao
parent 0251da2881
commit 3bd88bd445
1 changed files with 3 additions and 3 deletions

View File

@ -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