check_versions : track minifirewall version
Some checks reported errors
continuous-integration/drone/push Build was killed
Some checks reported errors
continuous-integration/drone/push Build was killed
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
|
### Added
|
||||||
|
|
||||||
check_mysqlmunin : Complain if munin plugin mysql_commands returns an error
|
check_mysqlmunin : Complain if munin plugin mysql_commands returns an error
|
||||||
|
check_versions : track minifirewall version
|
||||||
|
|
||||||
### Changed
|
### Changed
|
||||||
|
|
||||||
|
|
|
@ -1402,6 +1402,7 @@ get_command() {
|
||||||
listupgrade) command -v "evolistupgrade.sh" ;;
|
listupgrade) command -v "evolistupgrade.sh" ;;
|
||||||
old-kernel-autoremoval) command -v "old-kernel-autoremoval.sh" ;;
|
old-kernel-autoremoval) command -v "old-kernel-autoremoval.sh" ;;
|
||||||
mysql-queries-killer) command -v "mysql-queries-killer.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
|
## General case, where the program name is the same as the command name
|
||||||
*) command -v "${program}" ;;
|
*) command -v "${program}" ;;
|
||||||
|
@ -1422,6 +1423,9 @@ get_version() {
|
||||||
add-vm)
|
add-vm)
|
||||||
grep '^VERSION=' "${command}" | head -1 | cut -d '=' -f 2
|
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
|
## Let's try the --version flag before falling back to grep for the constant
|
||||||
kvmstats)
|
kvmstats)
|
||||||
if ${command} --version > /dev/null 2> /dev/null; then
|
if ${command} --version > /dev/null 2> /dev/null; then
|
||||||
|
|
Loading…
Reference in a new issue