summaryrefslogtreecommitdiffstats
path: root/pkgs/by-name/li/librenms/broken-binary-paths.diff
blob: 6d98165bf7e6350be054829e3edd7a0bb3d9671d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
diff --git a/app/ConfigRepository.php b/app/ConfigRepository.php
index 2d73cce81..b0110540b 100644
--- a/app/ConfigRepository.php
+++ b/app/ConfigRepository.php
@@ -444,13 +444,6 @@ class ConfigRepository
             $this->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($this->get($bin))) {
-                $this->persist($bin, $this->locateBinary($bin));
-            }
-        }
-
         if (! $this->has('rrdtool_version')) {
             $this->persist('rrdtool_version', (new Version($this))->rrdtool());
         }