mirror of
https://github.com/librenms/librenms.git
synced 2024-09-21 10:28:13 +00:00
Updating help text when validate cannot find a bin (#5584)
This commit is contained in:
parent
d464916136
commit
d526a16042
@ -218,7 +218,7 @@ $suid_bins = array('fping', 'fping6');
|
||||
foreach ($bins as $bin) {
|
||||
$cmd = rtrim(shell_exec("which {$config[$bin]} 2>/dev/null"));
|
||||
if (!$cmd) {
|
||||
print_fail("$bin location is incorrect or bin not installed");
|
||||
print_fail("$bin location is incorrect or bin not installed. \n\tYou can also manually set the path to $bin by placing the following in config.php: \n\t\$config['$bin'] = \"/path/to/$bin\";");
|
||||
} elseif (in_array($bin, $suid_bins) && !(fileperms($cmd) & 2048)) {
|
||||
print_fail("$bin should be suid, please chmod u+s $cmd");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user