scripts: create CNI config directory within Vagrant machine.

This commit is contained in:
James Rasell
2021-08-31 16:22:52 +02:00
parent 2998c4b05f
commit 5e2a179e38

View File

@@ -5,9 +5,10 @@ set -o errexit
VERSION="v1.0.0"
DOWNLOAD=https://github.com/containernetworking/plugins/releases/download/${VERSION}/cni-plugins-linux-amd64-${VERSION}.tgz
TARGET_DIR=/opt/cni/bin
CONFIG_DIR=/opt/cni/config
function install_cni() {
mkdir -p ${TARGET_DIR}
mkdir -p ${TARGET_DIR} ${CONFIG_DIR}
if [[ -e ${TARGET_DIR}/${VERSION} ]] ; then
return
fi