1
0
Fork 0
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:
Wilco de Boer 2021-05-18 14:53:56 +02:00 committed by GitHub
parent c31cb283fe
commit f23aa0798b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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