15 lines
510 B
Text
15 lines
510 B
Text
|
OpenBSD (and NetBSD) whereis don't support -b
|
||
|
|
||
|
Index: LibreNMS/Config.php
|
||
|
--- LibreNMS/Config.php.orig
|
||
|
+++ LibreNMS/Config.php
|
||
|
@@ -527,7 +527,7 @@ class Config
|
||
|
public static function locateBinary($binary)
|
||
|
{
|
||
|
if (! Str::contains($binary, '/')) {
|
||
|
- $output = `whereis -b $binary`;
|
||
|
+ $output = `whereis $binary`;
|
||
|
$list = trim(substr($output, strpos($output, ':') + 1));
|
||
|
$targets = explode(' ', $list);
|
||
|
foreach ($targets as $target) {
|