check_versions : track minifirewall version
continuous-integration/drone/push Build was killed
Details
continuous-integration/drone/push Build was killed
Details
This commit is contained in:
parent
1f81732c44
commit
93f8440c92
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue