depot/third_party/nixpkgs/pkgs/by-name/li/librenms/broken-binary-paths.diff

18 lines
740 B
Diff

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());
}