From 856572ad9b02d39d46cb8f333f956e893323cbfd Mon Sep 17 00:00:00 2001 From: Lars Kruse Date: Mon, 12 Aug 2019 02:02:31 +0200 Subject: [PATCH] Plugin lxc: verify the availability of "lxc-ls" Previously "autoconf" only verified, that /var/lib/lxc exists. But this could be just a remainder of a formerly installed lxc package. --- plugins/lxc/lxc-multigraph | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugins/lxc/lxc-multigraph b/plugins/lxc/lxc-multigraph index bc7866de..102349e9 100755 --- a/plugins/lxc/lxc-multigraph +++ b/plugins/lxc/lxc-multigraph @@ -183,6 +183,8 @@ do_autoconf() { echo "no (/proc/net/dev cannot be read)" elif [ ! -e "$lxcpath" ]; then echo "no ($lxcpath is not present)" + elif [ -z "$(which lxc-ls)" ]; then + echo "no ('lxc-ls' is not available in PATH)" else echo yes fi