Issue #3337: fix upgrade_cni_plugin
This commit is contained in:
1 parent
58eaf19026
commit
73654791c1
1 file changed
+2
-2
@@ -707,10 +707,10 @@ upgrade_cni_plugin() {
|
|||||||
|
|
||||||
# Create two symlinks to the plugin, as it has different
|
# Create two symlinks to the plugin, as it has different
|
||||||
# behaviour depending on its name:
|
# behaviour depending on its name:
|
||||||
if [ "$(readlink -f $1/weave-net)" != "$CNI_PLUGIN_NAME" ]; then
|
if [ "$(readlink -f $1/weave-net)" != "$1/$CNI_PLUGIN_NAME" ]; then
|
||||||
upgrade_cni_plugin_symlink $1 weave-net
|
upgrade_cni_plugin_symlink $1 weave-net
|
||||||
fi
|
fi
|
||||||
if [ "$(readlink -f $1/weave-ipam)" != "$CNI_PLUGIN_NAME" ]; then
|
if [ "$(readlink -f $1/weave-ipam)" != "$1/$CNI_PLUGIN_NAME" ]; then
|
||||||
upgrade_cni_plugin_symlink $1 weave-ipam
|
upgrade_cni_plugin_symlink $1 weave-ipam
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user