check that nsenter is present

for `weave --local ...`

Closes #895.
This commit is contained in:
Matthias Radestock committed 2015-06-11 16:37:28 +01:00
1 parent 2b7c785386
commit 8e04b135bb
1 file changed
+5
+5
View File
@@ -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)