[packages/nagios-plugin-check_vserver_count] handle new util-vserver /usr/share location of vars file

glen glen at pld-linux.org
Wed Feb 12 15:49:22 CET 2014


commit b13304e4d2d4f9fc9717b232f84b8d4b2af17486
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Wed Feb 12 14:49:20 2014 +0000

    handle new util-vserver /usr/share location of vars file

 check_vserver_count.sh                 | 3 ++-
 nagios-plugin-check_vserver_count.spec | 2 +-
 2 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/nagios-plugin-check_vserver_count.spec b/nagios-plugin-check_vserver_count.spec
index 3ec4844..018bbf1 100644
--- a/nagios-plugin-check_vserver_count.spec
+++ b/nagios-plugin-check_vserver_count.spec
@@ -3,7 +3,7 @@
 Summary:	Nagios plugin to check vserver count
 Name:		nagios-plugin-%{plugin}
 Version:	0.2
-Release:	1
+Release:	2
 License:	GPL v2
 Group:		Networking
 Source0:	%{plugin}.sh
diff --git a/check_vserver_count.sh b/check_vserver_count.sh
index 7db7f68..113c359 100755
--- a/check_vserver_count.sh
+++ b/check_vserver_count.sh
@@ -1,8 +1,9 @@
 #!/bin/sh
 
 [ -n "$UTIL_VSERVER_VARS" ] || {
-	UTIL_VSERVER_VARS=/usr/lib64/util-vserver/util-vserver-vars
+	UTIL_VSERVER_VARS=/usr/share/util-vserver/util-vserver-vars
 	[ -e "$UTIL_VSERVER_VARS" ] || UTIL_VSERVER_VARS=/usr/lib/util-vserver/util-vserver-vars
+	[ -e "$UTIL_VSERVER_VARS" ] || UTIL_VSERVER_VARS=/usr/lib64/util-vserver/util-vserver-vars
 }
 if [ ! -e "$UTIL_VSERVER_VARS" ] ; then
 	echo "Can not find util-vserver installation (the file '$UTIL_VSERVER_VARS' would be expected); aborting..." >&2
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/nagios-plugin-check_vserver_count.git/commitdiff/b13304e4d2d4f9fc9717b232f84b8d4b2af17486



More information about the pld-cvs-commit mailing list