depot/third_party/nixpkgs/pkgs/servers/monitoring/librenms/broken-binary-paths.diff
Default email b5f92a349c Project import generated by Copybara.
GitOrigin-RevId: 7c9cc5a6e5d38010801741ac830a3f8fd667a7a0
2023-10-19 15:55:26 +02: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());
}