Changeset 3407

Show
Ignore:
Timestamp:
03/10/10 14:13:52 (2 years ago)
Author:
ligne
Message:

modify how varnish_ autoconf checks for the varnishstat executable. ticket #873.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/plugins/node.d/varnish_.in

    r3293 r3407  
    678678sub autoconf 
    679679{ 
    680         if (`which $varnishstatexec 2>/dev/null` eq '') { 
    681                 print "no (which $varnishstatexec returns blank)\n"; 
    682                 exit 0; 
    683         } 
    684         print "yes\n"; 
     680        (`which $varnishstatexec 2>/dev/null` =~ m{^/}) 
     681                ? print "yes\n" 
     682                : print "no ($varnishstatexec could not be found)\n"; 
    685683        exit 0; 
    686684}