depot/pkgs/servers/monitoring/librenms/broken-binary-paths.diff
Luke Granger-Brown 57725ef3ec Squashed 'third_party/nixpkgs/' content from commit 76612b17c0ce
git-subtree-dir: third_party/nixpkgs
git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
2024-11-10 23:59:47 +00:00

18 lines
684 B
Diff

diff --git a/LibreNMS/Config.php b/LibreNMS/Config.php
index 5ed6b71..de7718a 100644
--- a/LibreNMS/Config.php
+++ b/LibreNMS/Config.php
@@ -460,13 +460,6 @@ class Config
self::persist('device_display_default', $display_value);
}
- // make sure we have full path to binaries in case PATH isn't set
- foreach (['fping', 'fping6', 'snmpgetnext', 'rrdtool', 'traceroute'] as $bin) {
- if (! is_executable(self::get($bin))) {
- self::persist($bin, self::locateBinary($bin));
- }
- }
-
if (! self::has('rrdtool_version')) {
self::persist('rrdtool_version', Rrd::version());
}