mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-07-21 18:41:03 +00:00
Add suggest capability to debsecan plugin
This commit is contained in:
parent
c31cb283fe
commit
f23aa0798b
1 changed files with 11 additions and 3 deletions
|
@ -36,6 +36,7 @@ Shell globbing patterns are allowed.
|
|||
|
||||
* Nicolas BOUTHORS <nbouthors@nbi.fr> http://nbi.fr/, Inspiration of the moment 10/10/2007
|
||||
* Olivier Mehani <shtrom+munin@ssji.net>, 2016
|
||||
* Wilco de Boer <deboer.wilco@gmail.com>, 2021
|
||||
|
||||
=head1 LICENSE
|
||||
|
||||
|
@ -43,13 +44,13 @@ Public Domain
|
|||
|
||||
=head1 MAGIC MARKERS
|
||||
|
||||
%# family=auto
|
||||
%# capabilities=autoconf
|
||||
#%# family=auto
|
||||
#%# capabilities=autoconf suggest
|
||||
|
||||
=cut
|
||||
|
||||
# Auto enable if we have debsecan only
|
||||
if [ "$1" = "autoconf" ] ; then
|
||||
if [ "$1" = "autoconf" ]; then
|
||||
if [ -x /usr/bin/debsecan ]; then
|
||||
echo yes
|
||||
else
|
||||
|
@ -58,6 +59,13 @@ if [ "$1" = "autoconf" ] ; then
|
|||
exit 0
|
||||
fi
|
||||
|
||||
# Suggest both modes when asked
|
||||
if [ "$1" = "suggest" ]; then
|
||||
echo 'pkg'
|
||||
echo 'cve'
|
||||
exit 0
|
||||
fi
|
||||
|
||||
# Fail if we don't have debsecan
|
||||
if [ ! -x /usr/bin/debsecan ]; then
|
||||
echo 'error: /usr/bin/debsecan not found' >&2
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue