From d526a16042418d27f3404de28d98118bc67bef57 Mon Sep 17 00:00:00 2001 From: Andrew Wippler Date: Wed, 25 Jan 2017 00:25:40 +0000 Subject: [PATCH] Updating help text when validate cannot find a bin (#5584) --- validate.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/validate.php b/validate.php index bc75d48169..04af0c9aba 100755 --- a/validate.php +++ b/validate.php @@ -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"); }