Skip to content

Commit 60f8368

Browse files
author
Till Brehm
committed
Prevent error to be shown on the shell when bind version is queried.
1 parent 7733846 commit 60f8368

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/plugins-available/bind_plugin.inc.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ function soa_update($event_name, $data) {
225225

226226
//* Get the bind version
227227
$bind_caa = false;
228-
$bind = explode("\n", shell_exec('which named bind'));
228+
$bind = explode("\n", shell_exec('which named bind 2> /dev/null'));
229229
$bind = reset($bind);
230230
if(is_executable($bind)) {
231231
exec($bind . ' -v 2>&1', $tmp);

0 commit comments

Comments
 (0)