Skip to content

Commit

Permalink
admin: improve perl detection
Browse files Browse the repository at this point in the history
Signed-off-by: Varun Patil <[email protected]>
  • Loading branch information
pulsejet committed Sep 3, 2023
1 parent 134e0f3 commit 50dfffc
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/Controller/AdminController.php
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,10 @@ public function getSystemStatus(): Http\Response
);

// 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();
Expand Down

0 comments on commit 50dfffc

Please sign in to comment.