admin: improve perl detection
Signed-off-by: Varun Patil <radialapps@gmail.com>pull/807/head
parent
134e0f3748
commit
50dfffc0f8
|
@ -100,7 +100,10 @@ class AdminController extends GenericApiController
|
|||
);
|
||||
|
||||
// Check for system perl
|
||||
$status['perl'] = $this->getExecutableStatus(exec('which perl'), static fn ($p) => BinExt::testSystemPerl($p));
|
||||
$status['perl'] = $this->getExecutableStatus(
|
||||
trim(shell_exec('which perl') ?: '/bin/perl'),
|
||||
static fn ($p) => BinExt::testSystemPerl($p)
|
||||
);
|
||||
|
||||
// Check number of indexed files
|
||||
$status['indexed_count'] = $index->getIndexedCount();
|
||||
|
|
Loading…
Reference in New Issue