From 93f8440c92ff482e73409365a06265cbbe027e90 Mon Sep 17 00:00:00 2001 From: Jeremy Lecour Date: Tue, 15 Mar 2022 23:17:44 +0100 Subject: [PATCH] check_versions : track minifirewall version --- CHANGELOG | 1 + evocheck.sh | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/CHANGELOG b/CHANGELOG index 478c6a9..c32d2a9 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -6,6 +6,7 @@ and this project **does not adhere to [Semantic Versioning](http://semver.org/sp ### Added check_mysqlmunin : Complain if munin plugin mysql_commands returns an error +check_versions : track minifirewall version ### Changed diff --git a/evocheck.sh b/evocheck.sh index 204ec4e..13cf7ea 100755 --- a/evocheck.sh +++ b/evocheck.sh @@ -1402,6 +1402,7 @@ get_command() { listupgrade) command -v "evolistupgrade.sh" ;; old-kernel-autoremoval) command -v "old-kernel-autoremoval.sh" ;; mysql-queries-killer) command -v "mysql-queries-killer.sh" ;; + minifirewall) echo "/etc/init.d/minifirewall" ;; ## General case, where the program name is the same as the command name *) command -v "${program}" ;; @@ -1422,6 +1423,9 @@ get_version() { add-vm) grep '^VERSION=' "${command}" | head -1 | cut -d '=' -f 2 ;; + minifirewall) + ${command} status | head -1 | cut -d ' ' -f 3 + ;; ## Let's try the --version flag before falling back to grep for the constant kvmstats) if ${command} --version > /dev/null 2> /dev/null; then