Skip to content
Snippets Groups Projects
Commit 60f83685 authored by Till Brehm's avatar Till Brehm
Browse files

Prevent error to be shown on the shell when bind version is queried.

parent 77338467
No related branches found
No related tags found
No related merge requests found
......@@ -225,7 +225,7 @@ class bind_plugin {
//* Get the bind version
$bind_caa = false;
$bind = explode("\n", shell_exec('which named bind'));
$bind = explode("\n", shell_exec('which named bind 2> /dev/null'));
$bind = reset($bind);
if(is_executable($bind)) {
exec($bind . ' -v 2>&1', $tmp);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment