mirror of
https://github.com/munin-monitoring/contrib.git
synced 2018-11-08 00:59:34 +01:00
plugin ipset: use "set -eu"
This commit is contained in:
parent
919991eef3
commit
4b9fcc0bcc
@ -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…
Reference in New Issue
Block a user