From ad539bea717c8e8cbfeb1f141a02ad288ec2442a Mon Sep 17 00:00:00 2001 From: Valentin Lab Date: Tue, 19 Dec 2023 18:08:53 +0100 Subject: [PATCH] new: [0km] check for existence of ``rrdtool`` or hint for a way to install it --- bin/0km | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/bin/0km b/bin/0km index e1171e6..085e75b 100755 --- a/bin/0km +++ b/bin/0km @@ -1337,6 +1337,15 @@ cmdline.spec::cmd:vps-stats:run() { echo "" return 1 } >&2 + ( depends rrdtool ) || { + echo "" + echo " Rrdtool is required to display graphs..." \ + "You might want to try to install ${WHITE}rrdtool${NORMAL} with:" + echo "" + echo " apt install rrdtool" + echo "" + return 1 + } >&2 export GNUTERM=qt exec {PFD}> >(exec gnuplot 2>/dev/null)