]> git.michaelhowe.org Git - packages/a/afs-monitor.git/commitdiff
Check in /usr/sbin for vos as well
authorDaniel Scott <djscott@MIT.EDU>
Sun, 12 Dec 2010 20:00:04 +0000 (12:00 -0800)
committerRuss Allbery <rra@stanford.edu>
Sun, 12 Dec 2010 20:00:04 +0000 (12:00 -0800)
In Fedora, the OpenAFS 'vos' binary is stored under:

/usr/sbin

and so I have added that directory to the search path in
check_afs_quotas and check_afs_space.

check_afs_quotas
check_afs_space

index 4a403f8764b7bbfbfeb47ecbf43015585754bb00..6d63039d9a000df6cb7f16f424cd9c0c5e388988 100755 (executable)
@@ -50,7 +50,7 @@ our $TIMEOUT = 300;
 
 # The full path to vos.  Make sure that this is on local disk so that
 # monitoring doesn't have an AFS dependency.
-our ($VOS) = grep { -x $_ } qw(/usr/bin/vos /usr/local/bin/vos);
+our ($VOS) = grep { -x $_ } qw(/usr/bin/vos /usr/local/bin/vos /usr/sbin/vos);
 $VOS ||= '/usr/bin/vos';
 
 ##############################################################################
index afc9e02711c62733d012a2999f24817ff1e49677..495d53bbc6bc2a4496b234a245f14b4c9399ed15 100755 (executable)
@@ -49,7 +49,7 @@ our $TIMEOUT = 300;
 
 # The full path to vos.  Make sure that this is on local disk so that
 # monitoring doesn't have an AFS dependency.
-our ($VOS) = grep { -x $_ } qw(/usr/bin/vos /usr/local/bin/vos);
+our ($VOS) = grep { -x $_ } qw(/usr/bin/vos /usr/local/bin/vos /usr/sbin/vos);
 $VOS ||= '/usr/bin/vos';
 
 ##############################################################################