mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-07-22 02:51:03 +00:00
plugin ipset: use "set -eu"
This commit is contained in:
parent
919991eef3
commit
4b9fcc0bcc
1 changed files with 4 additions and 2 deletions
|
@ -45,13 +45,15 @@ GPLv2
|
|||
|
||||
=cut
|
||||
|
||||
set -eu
|
||||
|
||||
|
||||
get_ipset_list() {
|
||||
ipset list -n
|
||||
}
|
||||
|
||||
|
||||
if [ "$1" = "autoconf" ]; then
|
||||
if [ "${1:-}" = "autoconf" ]; then
|
||||
if [ -e /sbin/ipset ] || [ -n "$(which ipset)" ]; then
|
||||
echo 'yes'
|
||||
else
|
||||
|
@ -60,7 +62,7 @@ if [ "$1" = "autoconf" ]; then
|
|||
exit 0
|
||||
fi
|
||||
|
||||
if [ "$1" = "config" ]; then
|
||||
if [ "${1:-}" = "config" ]; then
|
||||
echo graph_title Netfilter IPSets
|
||||
echo graph_category network
|
||||
echo graph_vlabel Members
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue