From 70f77c883b783d58e94bf6ea7970752a052e4000 Mon Sep 17 00:00:00 2001 From: Emmanuel Garette Date: Fri, 7 Aug 2020 11:14:23 +0200 Subject: [PATCH] =?UTF-8?q?exemple=20diagnose=20affichage=20de=20inactif?= =?UTF-8?q?=20si=20d=C3=A9sactiv=C3=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- content/modules_eole_envole/90-vnstat | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/content/modules_eole_envole/90-vnstat b/content/modules_eole_envole/90-vnstat index ad62aec..0a6dbbf 100755 --- a/content/modules_eole_envole/90-vnstat +++ b/content/modules_eole_envole/90-vnstat @@ -1,11 +1,15 @@ #!/bin/bash +#set -e +. /usr/lib/eole/diagnose.sh +EchoGras "*** Service de statistique réseau" + if [ "$(CreoleGet activer_vnstat)" = "oui" ]; then - . /usr/lib/eole/diagnose.sh - EchoGras "*** Service de statistique réseau" TestPid vnStat vnstatd echo vnstat +else + Inactif vnStat fi echo