Projet

Général

Profil

Révision fefcad98

IDfefcad986e268d265ca5923f9104658f8aaa3449
Parent 149c09dd
Enfant 8974c45c

Ajouté par Stig Sandbeck Mathisen il y a environ 11 ans

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".

Voir les différences:

plugins/snmp/snmp__webthermometer
40 40
			if [ ! "$RC" != "0" ] ; then
41 41
				FILE=`basename $0`
42 42
				DIR=`dirname $0`
43
				HOSTNAME=`host $IP | sed s/.*pointer//\ `
44
				HOSTNAME=`echo $HOSTNAME | sed -e 's/\.$//'`
43
				HOST_NAME=`host $IP | sed s/.*pointer//\ `
44
				HOST_NAME=`echo $HOST_NAME | sed -e 's/\.$//'`
45 45
				LINKDIR="/etc/munin/plugins/"
46
				LINKFILE=`echo $FILE | sed s/__/_$HOSTNAME_/`
47
				echo file $FILE dir $DIR hostname $HOSTNAME linkdir $LINKDIR	linkfile $LINKFILE
46
				LINKFILE=`echo $FILE | sed s/__/_$HOST_NAME_/`
47
				echo file $FILE dir $DIR hostname $HOST_NAME linkdir $LINKDIR	linkfile $LINKFILE
48 48
				#echo "ln -s $DIR/$FILE $LINKNAME"
49 49
			fi
50 50

  

Formats disponibles : Unified diff