From 5e2a179e3824e4ee6cc76f6beace51c4eafbd78c Mon Sep 17 00:00:00 2001 From: James Rasell Date: Tue, 31 Aug 2021 16:22:52 +0200 Subject: [PATCH] scripts: create CNI config directory within Vagrant machine. --- scripts/vagrant-linux-priv-cni.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/vagrant-linux-priv-cni.sh b/scripts/vagrant-linux-priv-cni.sh index 529c177ab..2939f6dee 100755 --- a/scripts/vagrant-linux-priv-cni.sh +++ b/scripts/vagrant-linux-priv-cni.sh @@ -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