From 8e04b135bbf3dd3a53ea72f210f236fa093726e4 Mon Sep 17 00:00:00 2001 From: Matthias Radestock Date: Thu, 11 Jun 2015 16:37:28 +0100 Subject: [PATCH] check that nsenter is present for `weave --local ...` Closes #895. --- weave | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/weave b/weave index 14f68fc1..2e941902 100755 --- a/weave +++ b/weave @@ -916,6 +916,11 @@ if ! ip netns list >/dev/null 2>&1 ; then exit 1 fi +if ! command_exists nsenter ; then + echo "ERROR: nsenter utility missing. Please install it." >&2 + exit 1 +fi + check_docker_version DOCKER_VERSION_MAJOR=$(echo "$DOCKER_VERSION" | cut -d. -f 1) DOCKER_VERSION_MINOR=$(echo "$DOCKER_VERSION" | cut -d. -f 2)