Updating help text when validate cannot find a bin (#5584)

This commit is contained in:
Andrew Wippler 2017-01-25 00:25:40 +00:00 committed by Neil Lathwood
parent d464916136
commit d526a16042

View File

@ -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");
}