ports/net/librenms/patches/patch-LibreNMS_Config_php

15 lines
510 B
Text
Raw Normal View History

2023-08-16 22:26:55 +00:00
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) {