Files
ports/net/librenms/patches/patch-app_ConfigRepository_php
2026-03-17 19:28:51 +00:00

15 lines
566 B
Plaintext

OpenBSD whereis doesn't support -b
Index: app/ConfigRepository.php
--- app/ConfigRepository.php.orig
+++ app/ConfigRepository.php
@@ -535,7 +535,7 @@ class ConfigRepository
public function locateBinary($binary): mixed
{
if (! Str::contains($binary, '/')) {
- $output = shell_exec("whereis -b $binary");
+ $output = shell_exec("whereis $binary");
$list = trim(substr((string) $output, strpos((string) $output, ':') + 1));
$targets = explode(' ', $list);
foreach ($targets as $target) {