check_versions : track minifirewall version
continuous-integration/drone/push Build was killed Details

This commit is contained in:
Jérémy Lecour 2022-03-15 23:17:44 +01:00 committed by Jérémy Lecour
parent 1f81732c44
commit 93f8440c92
2 changed files with 5 additions and 0 deletions

View File

@ -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

View File

@ -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