From dd71deb7720a42af0e6dbee07ffb924f59cb743d Mon Sep 17 00:00:00 2001 From: Thomas Fricke Date: Mon, 7 Dec 2015 11:57:05 +0100 Subject: [PATCH] check for existing POOL_PATH --- cluster/libvirt-coreos/util.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cluster/libvirt-coreos/util.sh b/cluster/libvirt-coreos/util.sh index c4feeddd0f1..fa6a4bc7312 100644 --- a/cluster/libvirt-coreos/util.sh +++ b/cluster/libvirt-coreos/util.sh @@ -29,6 +29,8 @@ export ADMISSION_CONTROL=${ADMISSION_CONTROL:-NamespaceLifecycle,LimitRanger,Ser readonly POOL=kubernetes readonly POOL_PATH=/var/lib/libvirt/images/kubernetes +[ ! -d "${POOL_PATH}" ] && (echo "$POOL_PATH" does not exist ; exit 1 ) + # join # Concatenates the list elements with the delimiter passed as first parameter #