mirror of
https://github.com/munin-monitoring/contrib.git
synced 2018-11-08 00:59:34 +01:00
Work around false positive in checkbashisms
- Nothing wrong with the plugin, but checkbashisms triggers on the presence of a variable called $HOSTNAME - Changing the variable name in the plugin is the "easy way out".
This commit is contained in:
parent
149c09ddc8
commit
fefcad986e
@ -40,11 +40,11 @@ if [ "$1" = "suggest" ]; then
|
||||
if [ ! "$RC" != "0" ] ; then
|
||||
FILE=`basename $0`
|
||||
DIR=`dirname $0`
|
||||
HOSTNAME=`host $IP | sed s/.*pointer//\ `
|
||||
HOSTNAME=`echo $HOSTNAME | sed -e 's/\.$//'`
|
||||
HOST_NAME=`host $IP | sed s/.*pointer//\ `
|
||||
HOST_NAME=`echo $HOST_NAME | sed -e 's/\.$//'`
|
||||
LINKDIR="/etc/munin/plugins/"
|
||||
LINKFILE=`echo $FILE | sed s/__/_$HOSTNAME_/`
|
||||
echo file $FILE dir $DIR hostname $HOSTNAME linkdir $LINKDIR linkfile $LINKFILE
|
||||
LINKFILE=`echo $FILE | sed s/__/_$HOST_NAME_/`
|
||||
echo file $FILE dir $DIR hostname $HOST_NAME linkdir $LINKDIR linkfile $LINKFILE
|
||||
#echo "ln -s $DIR/$FILE $LINKNAME"
|
||||
fi
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user