packages: nagios-plugin-check_ipmi/check_ipmi - minor fixes

glen glen at pld-linux.org
Thu Dec 9 23:35:26 CET 2010


Author: glen                         Date: Thu Dec  9 22:35:26 2010 GMT
Module: packages                      Tag: HEAD
---- Log message:
- minor fixes

---- Files affected:
packages/nagios-plugin-check_ipmi:
   check_ipmi (1.2 -> 1.3) 

---- Diffs:

================================================================
Index: packages/nagios-plugin-check_ipmi/check_ipmi
diff -u packages/nagios-plugin-check_ipmi/check_ipmi:1.2 packages/nagios-plugin-check_ipmi/check_ipmi:1.3
--- packages/nagios-plugin-check_ipmi/check_ipmi:1.2	Thu Dec  9 23:30:13 2010
+++ packages/nagios-plugin-check_ipmi/check_ipmi	Thu Dec  9 23:35:21 2010
@@ -102,7 +102,7 @@
 		exit 0
 		;;
 	-V|--version)
-		echo $PROGRAM $VERSION
+		echo $PROGRAM $REVISION
 		exit 0
 		;;
 	-S)
@@ -115,12 +115,12 @@
 	shift
 done
 
-if [ -z "$cache_filename" ]; then
-	die UNKNOWN "No databasename given."
-fi
-
 if [ "$setup_sudo" = 1 ]; then
 	setup_sudoers
+fi
+
+if [ -z "$cache_filename" ]; then
+	die UNKNOWN "No databasename given."
 fi
 
 if [ ! -s "$cache_filename" ]; then
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/nagios-plugin-check_ipmi/check_ipmi?r1=1.2&r2=1.3&f=u



More information about the pld-cvs-commit mailing list