mirror of
https://github.com/kemko/nomad.git
synced 2026-01-05 01:45:44 +03:00
scripts: create CNI config directory within Vagrant machine.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user